Concrete class for hyperparameter with continuous values.
More...
#include <ContinuousParameter.hpp>
|
bool | logscale = false |
| whether the parameter is on a log-scale
|
|
double | maxv |
| maximum value of the hyperparameter during optimization
|
|
double | minv |
| minimum value of the hyperparameter during optimization
|
|
double | value = 0 |
| current value of the hyperparameter
|
|
std::vector< ConfigurationBit > | bits |
| associated configuration bits for harmonica
|
|
std::string | name |
| name of the hyperparameter
|
|
size_t | nBits |
| number of bits for harmonica
|
|
Concrete class for hyperparameter with continuous values.
◆ ContinuousParameter() [1/2]
sgpp::datadriven::ContinuousParameter::ContinuousParameter |
( |
| ) |
|
|
default |
◆ ContinuousParameter() [2/2]
sgpp::datadriven::ContinuousParameter::ContinuousParameter |
( |
size_t |
nBits, |
|
|
std::string && |
name, |
|
|
double |
minv, |
|
|
double |
maxv, |
|
|
bool |
logscale = false |
|
) |
| |
|
inline |
Normal Constructor.
- Parameters
-
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 |
◆ getValue()
double sgpp::datadriven::ContinuousParameter::getValue |
( |
| ) |
|
|
virtual |
Retrieve the current value of the hyperparameter.
- Returns
- value of the hyperparameter
References logscale, and value.
◆ setBO()
void sgpp::datadriven::ContinuousParameter::setBO |
( |
double |
interval | ) |
|
adjust the current value of the hyperparameter according to the (normalized) input
- Parameters
-
interval | (normalized) value of the hyperparameter |
References maxv, minv, and value.
◆ setHarmonica()
void sgpp::datadriven::ContinuousParameter::setHarmonica |
( |
| ) |
|
|
overridevirtual |
◆ logscale
bool sgpp::datadriven::ContinuousParameter::logscale = false |
|
protected |
whether the parameter is on a log-scale
Referenced by getValue().
◆ maxv
double sgpp::datadriven::ContinuousParameter::maxv |
|
protected |
◆ minv
double sgpp::datadriven::ContinuousParameter::minv |
|
protected |
◆ value
double sgpp::datadriven::ContinuousParameter::value = 0 |
|
protected |
The documentation for this class was generated from the following files: