SG++-Doxygen-Documentation
|
Concrete class for hyperparameter with continuous values. More...
#include <ContinuousParameter.hpp>
Public Member Functions | |
ContinuousParameter ()=default | |
Default constructor. More... | |
ContinuousParameter (size_t nBits, std::string &&name, double minv, double maxv, bool logscale=false) | |
Normal Constructor. More... | |
virtual double | getValue () |
Retrieve the current value of the hyperparameter. More... | |
void | setBO (double interval) |
adjust the current value of the hyperparameter according to the (normalized) input More... | |
void | setHarmonica () override |
adjust the current value of the hyperparameter according to the bit configuration by harmonica More... | |
Public Member Functions inherited from sgpp::datadriven::HyperParameter | |
HyperParameter () | |
Default constructor for implicit use by data structures. More... | |
HyperParameter (size_t nBits, std::string &name) | |
Normal constructor. More... | |
void | makeConfigBits (std::vector< ConfigurationBit *> &configBits) |
Connects parameter to bit representation in harmonica. More... | |
virtual | ~HyperParameter ()=default |
Default Destructor. More... | |
Protected Attributes | |
bool | logscale = false |
whether the parameter is on a log-scale More... | |
double | maxv |
maximum value of the hyperparameter during optimization More... | |
double | minv |
minimum value of the hyperparameter during optimization More... | |
double | value = 0 |
current value of the hyperparameter More... | |
Protected Attributes inherited from sgpp::datadriven::HyperParameter | |
std::vector< ConfigurationBit > | bits |
associated configuration bits for harmonica More... | |
std::string | name |
name of the hyperparameter More... | |
size_t | nBits |
number of bits for harmonica More... | |
Concrete class for hyperparameter with continuous values.
|
default |
Default constructor.
|
inline |
Normal Constructor.
nBits | number of bits for representation in harmonica |
name | name of the hyperparameter |
minv | minimum value of the hyperparameter during optimization |
maxv | maximum value of the hyperparameter during optimization |
logscale | whether this parameter operates on a logscale |
References getValue(), setBO(), and setHarmonica().
|
virtual |
Retrieve the current value of the hyperparameter.
References logscale, sgpp::combigrid::pow(), and value.
Referenced by ContinuousParameter().
void sgpp::datadriven::ContinuousParameter::setBO | ( | double | interval | ) |
adjust the current value of the hyperparameter according to the (normalized) input
interval | (normalized) value of the hyperparameter |
References maxv, minv, and value.
Referenced by ContinuousParameter().
|
overridevirtual |
adjust the current value of the hyperparameter according to the bit configuration by harmonica
Implements sgpp::datadriven::HyperParameter.
References sgpp::datadriven::HyperParameter::bits, m, maxv, minv, and value.
Referenced by ContinuousParameter().
|
protected |
whether the parameter is on a log-scale
Referenced by getValue().
|
protected |
maximum value of the hyperparameter during optimization
Referenced by setBO(), and setHarmonica().
|
protected |
minimum value of the hyperparameter during optimization
Referenced by setBO(), and setHarmonica().
|
protected |
current value of the hyperparameter
Referenced by getValue(), setBO(), and setHarmonica().