![]() |
SG++-Doxygen-Documentation
|
Abstract factory to build all kinds of fitters/models based on a given configuration. More...
#include <FitterFactory.hpp>
Public Member Functions | |
| virtual ModelFittingBase * | buildFitter ()=0 |
| Assemble a sgpp::datadriven::ModelFittingBase object based on the configuration determined by a previous set_() call. More... | |
| FitterFactory ()=default | |
| Default constructor. More... | |
| BOConfig | getBOConfig () |
| Gets a compact representation of the hyperparameter configuration space. More... | |
| virtual void | getConfigBits (std::vector< ConfigurationBit *> &configBits) |
| Setup connection to hyperparameter classes for modifying them through boolean represenations. More... | |
| std::string | printConfig () |
| Outputs information about the current hyperparameter configuration. More... | |
| std::string | printHeadline () |
| Outputs the names of the hyperparameters. More... | |
| void | setBO (BOConfig &config) |
| Adjusts current hyperparameter configuration according to the input. More... | |
| void | setHarmonica () |
| Adjusts the current hyperparameter configuration according to the configBits. More... | |
| virtual | ~FitterFactory ()=default |
| Virtual destructor. More... | |
Protected Attributes | |
| std::vector< base::GridType > | basisFunctions |
| Container for GridTypes specifically for the basis function hyperparameter. More... | |
| std::vector< int > | catOptions |
| numer of options for all categorical parameters More... | |
| std::map< std::string, DiscreteParameter > | catpar |
| map to store hyperparameters defined on a discrete domain without inherent ordering (categorical) More... | |
| std::map< std::string, ContinuousParameter > | conpar |
| map to store hyperparameters defined on a continuous domain More... | |
| std::vector< int > | discOptions |
| number of options for all discrete parameters More... | |
| std::map< std::string, DiscreteParameter > | dispar |
| map to store hyperparameters defined on a discrete domain More... | |
Abstract factory to build all kinds of fitters/models based on a given configuration.
|
default |
Default constructor.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Assemble a sgpp::datadriven::ModelFittingBase object based on the configuration determined by a previous set_() call.
Implemented in sgpp::datadriven::DensityEstimationFitterFactory, and sgpp::datadriven::LeastSquaresRegressionFitterFactory.
Referenced by sgpp::datadriven::Harmonica::prepareConfigs().
| BOConfig sgpp::datadriven::FitterFactory::getBOConfig | ( | ) |
Gets a compact representation of the hyperparameter configuration space.
References catOptions, catpar, conpar, discOptions, and dispar.
|
virtual |
Setup connection to hyperparameter classes for modifying them through boolean represenations.
| configBits | reference to the boolean "configBits" |
References catpar, conpar, and dispar.
Referenced by sgpp::datadriven::Harmonica::Harmonica().
| std::string sgpp::datadriven::FitterFactory::printConfig | ( | ) |
Outputs information about the current hyperparameter configuration.
References basisFunctions, catpar, conpar, dispar, create_scripts::s, and sgpp::datadriven::GridTypeParser::toString().
Referenced by sgpp::datadriven::Harmonica::prepareConfigs().
| std::string sgpp::datadriven::FitterFactory::printHeadline | ( | ) |
Outputs the names of the hyperparameters.
References catpar, conpar, dispar, and create_scripts::s.
| void sgpp::datadriven::FitterFactory::setBO | ( | BOConfig & | config | ) |
Adjusts current hyperparameter configuration according to the input.
| config | compact representation of hyperparameters |
References catpar, conpar, dispar, sgpp::datadriven::BOConfig::getCat(), sgpp::datadriven::BOConfig::getCont(), sgpp::datadriven::BOConfig::getDisc(), and python.statsfileInfo::i.
| void sgpp::datadriven::FitterFactory::setHarmonica | ( | ) |
Adjusts the current hyperparameter configuration according to the configBits.
References catpar, conpar, and dispar.
Referenced by sgpp::datadriven::Harmonica::setParameters().
|
protected |
Container for GridTypes specifically for the basis function hyperparameter.
Referenced by sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), and printConfig().
|
protected |
numer of options for all categorical parameters
Referenced by getBOConfig().
|
protected |
map to store hyperparameters defined on a discrete domain without inherent ordering (categorical)
Referenced by sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), getBOConfig(), getConfigBits(), printConfig(), printHeadline(), setBO(), and setHarmonica().
|
protected |
map to store hyperparameters defined on a continuous domain
Referenced by sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), getBOConfig(), getConfigBits(), printConfig(), printHeadline(), setBO(), and setHarmonica().
|
protected |
number of options for all discrete parameters
Referenced by getBOConfig().
|
protected |
map to store hyperparameters defined on a discrete domain
Referenced by sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), getBOConfig(), getConfigBits(), printConfig(), printHeadline(), setBO(), and setHarmonica().