41 std::map<std::string, ParameterValue>
values;
const char * parameter_type_name(ParameterType type) noexcept
Returns a stable lowercase name for type.
ParameterType parameter_type(const ParameterValue &value) noexcept
Returns the discriminator of value.
ParameterType
Runtime discriminator for a ParameterValue alternative.
@ String
UTF-8 string value.
@ Boolean
The two values false and true.
@ Real
Continuous or stepped binary64 interval.
@ Integer
Discrete signed-integer lattice.
std::variant< std::int64_t, double, bool, std::string > ParameterValue
Scalar parameter value accepted by search spaces and the PineForge strategy ABI.
std::string serialize_parameter_value(const ParameterValue &value)
Produces the exact text passed to strategy_set_input or strategy_set_override.
Complete parameter assignment proposed by a sampler.
std::map< std::string, ParameterValue > values
Parameter values keyed by search-space dimension name.
const ParameterValue * find(const std::string &name) const noexcept
Returns the named value, or nullptr when the candidate does not contain it.
Metadata supplied to a custom objective while evaluating one trial.
const Candidate * candidate
Non-owning candidate pointer; may be nullptr when no candidate is associated.
std::uint64_t trial_id
Scheduler-level trial identifier.