SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::datadriven::HyperParameter Class Referenceabstract

Class to represent a hyperparameter. More...

#include <HyperParameter.hpp>

Inheritance diagram for sgpp::datadriven::HyperParameter:
sgpp::datadriven::ContinuousParameter sgpp::datadriven::DiscreteParameter

Public Member Functions

 HyperParameter ()
 Default constructor for implicit use by data structures.
 
 HyperParameter (size_t nBits, std::string &name)
 Normal constructor.
 
void makeConfigBits (std::vector< ConfigurationBit * > &configBits)
 Connects parameter to bit representation in harmonica.
 
virtual void setHarmonica ()=0
 sets value according to the associated bits
 
virtual ~HyperParameter ()=default
 Default Destructor.
 

Protected Attributes

std::vector< ConfigurationBitbits
 associated configuration bits for harmonica
 
std::string name
 name of the hyperparameter
 
size_t nBits
 number of bits for harmonica
 

Detailed Description

Class to represent a hyperparameter.

Constructor & Destructor Documentation

◆ HyperParameter() [1/2]

sgpp::datadriven::HyperParameter::HyperParameter ( )
inline

Default constructor for implicit use by data structures.

◆ HyperParameter() [2/2]

sgpp::datadriven::HyperParameter::HyperParameter ( size_t  nBits,
std::string &  name 
)
inline

Normal constructor.

Parameters
nBitsnumber of bits for representation in harmonica
namename of the hyperparameter

◆ ~HyperParameter()

virtual sgpp::datadriven::HyperParameter::~HyperParameter ( )
virtualdefault

Default Destructor.

Member Function Documentation

◆ makeConfigBits()

void sgpp::datadriven::HyperParameter::makeConfigBits ( std::vector< ConfigurationBit * > &  configBits)

Connects parameter to bit representation in harmonica.

Parameters
configBits

References bits, name, and nBits.

◆ setHarmonica()

virtual void sgpp::datadriven::HyperParameter::setHarmonica ( )
pure virtual

sets value according to the associated bits

Implemented in sgpp::datadriven::ContinuousParameter, and sgpp::datadriven::DiscreteParameter.

Member Data Documentation

◆ bits

std::vector<ConfigurationBit> sgpp::datadriven::HyperParameter::bits
protected

◆ name

◆ nBits

size_t sgpp::datadriven::HyperParameter::nBits
protected

number of bits for harmonica

Referenced by sgpp::datadriven::DiscreteParameter::DiscreteParameter(), and makeConfigBits().


The documentation for this class was generated from the following files: