PineForge HPO 0.1.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
types.hpp File Reference
#include <cstdint>
#include <map>
#include <string>
#include <variant>

Go to the source code of this file.

Classes

struct  pineforge::hpo::Candidate
 Complete parameter assignment proposed by a sampler. More...
 
struct  pineforge::hpo::TrialContext
 Metadata supplied to a custom objective while evaluating one trial. More...
 

Namespaces

namespace  pineforge
 
namespace  pineforge::hpo
 

Typedefs

using pineforge::hpo::ParameterValue = std::variant< std::int64_t, double, bool, std::string >
 Scalar parameter value accepted by search spaces and the PineForge strategy ABI.
 

Enumerations

enum class  pineforge::hpo::ParameterType { pineforge::hpo::Integer , pineforge::hpo::Real , pineforge::hpo::Boolean , pineforge::hpo::String }
 Runtime discriminator for a ParameterValue alternative. More...
 

Functions

ParameterType pineforge::hpo::parameter_type (const ParameterValue &value) noexcept
 Returns the discriminator of value.
 
const char * pineforge::hpo::parameter_type_name (ParameterType type) noexcept
 Returns a stable lowercase name for type.
 
std::string pineforge::hpo::serialize_parameter_value (const ParameterValue &value)
 Produces the exact text passed to strategy_set_input or strategy_set_override.