![]() |
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. | |
FitterFactory ()=default | |
Default constructor. | |
BOConfig | getBOConfig () |
Gets a compact representation of the hyperparameter configuration space. | |
virtual void | getConfigBits (std::vector< ConfigurationBit * > &configBits) |
Setup connection to hyperparameter classes for modifying them through boolean represenations. | |
std::string | printConfig () |
Outputs information about the current hyperparameter configuration. | |
std::string | printHeadline () |
Outputs the names of the hyperparameters. | |
void | setBO (BOConfig &config) |
Adjusts current hyperparameter configuration according to the input. | |
void | setHarmonica () |
Adjusts the current hyperparameter configuration according to the configBits. | |
virtual | ~FitterFactory ()=default |
Virtual destructor. | |
Protected Attributes | |
std::vector< base::GridType > | basisFunctions |
Container for GridTypes specifically for the basis function hyperparameter. | |
std::vector< int > | catOptions |
numer of options for all categorical parameters | |
std::map< std::string, DiscreteParameter > | catpar |
map to store hyperparameters defined on a discrete domain without inherent ordering (categorical) | |
std::map< std::string, ContinuousParameter > | conpar |
map to store hyperparameters defined on a continuous domain | |
std::vector< int > | discOptions |
number of options for all discrete parameters | |
std::map< std::string, DiscreteParameter > | dispar |
map to store hyperparameters defined on a discrete domain | |
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::ClassificationFitterFactory, 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, and sgpp::base::GridTypeParser::toString().
Referenced by sgpp::datadriven::Harmonica::prepareConfigs().
std::string sgpp::datadriven::FitterFactory::printHeadline | ( | ) |
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(), and sgpp::datadriven::BOConfig::getDisc().
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::ClassificationFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::ClassificationFitterFactory::ClassificationFitterFactory(), sgpp::datadriven::DensityEstimationFitterFactory::DensityEstimationFitterFactory(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::LeastSquaresRegressionFitterFactory(), 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::ClassificationFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::ClassificationFitterFactory::ClassificationFitterFactory(), sgpp::datadriven::DensityEstimationFitterFactory::DensityEstimationFitterFactory(), getBOConfig(), getConfigBits(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::LeastSquaresRegressionFitterFactory(), printConfig(), printHeadline(), setBO(), and setHarmonica().
|
protected |
map to store hyperparameters defined on a continuous domain
Referenced by sgpp::datadriven::ClassificationFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::ClassificationFitterFactory::ClassificationFitterFactory(), sgpp::datadriven::DensityEstimationFitterFactory::DensityEstimationFitterFactory(), getBOConfig(), getConfigBits(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::LeastSquaresRegressionFitterFactory(), 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::ClassificationFitterFactory::buildFitter(), sgpp::datadriven::DensityEstimationFitterFactory::buildFitter(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::buildFitter(), sgpp::datadriven::ClassificationFitterFactory::ClassificationFitterFactory(), sgpp::datadriven::DensityEstimationFitterFactory::DensityEstimationFitterFactory(), getBOConfig(), getConfigBits(), sgpp::datadriven::LeastSquaresRegressionFitterFactory::LeastSquaresRegressionFitterFactory(), printConfig(), printHeadline(), setBO(), and setHarmonica().