concrete class for hyperparameter with discrete values
More...
#include <DiscreteParameter.hpp>
|
int | maxv |
| maximum value of the hyperparameter during optimization
|
|
int | minv |
| minimum value of the hyperparameter during optimization
|
|
int | 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 discrete values
◆ DiscreteParameter() [1/3]
sgpp::datadriven::DiscreteParameter::DiscreteParameter |
( |
| ) |
|
|
default |
◆ DiscreteParameter() [2/3]
sgpp::datadriven::DiscreteParameter::DiscreteParameter |
( |
std::string && |
name, |
|
|
int |
minv, |
|
|
int |
maxv |
|
) |
| |
Normal constructor, number of bits calculated automatically.
- Parameters
-
name | name of the hyperparameter |
minv | minimum value of the hyperparameter during optimization |
maxv | maximum value of the hyperparameter during optimization |
References maxv, minv, and sgpp::datadriven::HyperParameter::nBits.
◆ DiscreteParameter() [3/3]
sgpp::datadriven::DiscreteParameter::DiscreteParameter |
( |
int |
nBits, |
|
|
std::string && |
name, |
|
|
int |
minv, |
|
|
int |
maxv |
|
) |
| |
|
inline |
Constructor with custom number of bits.
- 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 |
◆ getNOptions()
int sgpp::datadriven::DiscreteParameter::getNOptions |
( |
| ) |
|
Retrieve the number of options for this parameter.
- Returns
References maxv, and minv.
◆ getValue()
int sgpp::datadriven::DiscreteParameter::getValue |
( |
| ) |
|
Retrieve the current value of the hyperparameter.
- Returns
- value of the hyperparameter
References value.
◆ setBO()
void sgpp::datadriven::DiscreteParameter::setBO |
( |
int |
option | ) |
|
adjust the current value of the hyperparameter according to the (normalized) input
- Parameters
-
option | value of the parameter from 0 |
References minv, and value.
◆ setHarmonica()
void sgpp::datadriven::DiscreteParameter::setHarmonica |
( |
| ) |
|
|
overridevirtual |
◆ maxv
int sgpp::datadriven::DiscreteParameter::maxv |
|
protected |
◆ minv
int sgpp::datadriven::DiscreteParameter::minv |
|
protected |
◆ value
int sgpp::datadriven::DiscreteParameter::value = 0 |
|
protected |
The documentation for this class was generated from the following files: