|
PineForge HPO 0.1.0
Native hyperparameter optimization for PineForge strategies
|
Named signed-integer dimension with inclusive bounds and a positive step. More...
#include <pineforge/hpo/search_space.hpp>
Public Member Functions | |
| IntegerDimension (std::string name, std::int64_t low, std::int64_t high, std::int64_t step=1, bool log=false) | |
| Constructs an integer dimension. | |
| const std::string & | name () const noexcept |
| Returns the unique dimension name. | |
| std::int64_t | low () const noexcept |
| Returns the inclusive lower bound. | |
| std::int64_t | high () const noexcept |
| Returns the inclusive upper bound. | |
| std::int64_t | step () const noexcept |
| Returns the positive lattice step. | |
| bool | log () const noexcept |
| Returns whether adaptive samplers operate in logarithmic latent coordinates. | |
| bool | contains (const ParameterValue &value) const noexcept |
| Tests both the scalar type and membership in this dimension's integer lattice. | |
Named signed-integer dimension with inclusive bounds and a positive step.
Definition at line 24 of file search_space.hpp.
| pineforge::hpo::IntegerDimension::IntegerDimension | ( | std::string | name, |
| std::int64_t | low, | ||
| std::int64_t | high, | ||
| std::int64_t | step = 1, |
||
| bool | log = false |
||
| ) |
Constructs an integer dimension.
Log dimensions require positive bounds and step == 1. Adaptive and random samplers use the expanded latent interval [ln(low - 0.5), ln(high + 0.5)]; finite grid enumeration remains literal.
| std::invalid_argument | for an empty name, reversed bounds, a non-positive step, or an invalid log configuration. |
|
noexcept |
Tests both the scalar type and membership in this dimension's integer lattice.
|
inlinenoexcept |
Returns the inclusive upper bound.
Definition at line 45 of file search_space.hpp.
|
inlinenoexcept |
Returns whether adaptive samplers operate in logarithmic latent coordinates.
Definition at line 49 of file search_space.hpp.
|
inlinenoexcept |
Returns the inclusive lower bound.
Definition at line 43 of file search_space.hpp.
|
inlinenoexcept |
Returns the unique dimension name.
Definition at line 41 of file search_space.hpp.
|
inlinenoexcept |
Returns the positive lattice step.
Definition at line 47 of file search_space.hpp.