SG++-Doxygen-Documentation
sgpp::datadriven::DataMiningConfigParser Class Reference

#include <DataMiningConfigParser.hpp>

Public Member Functions

 DataMiningConfigParser (const std::string &filepath)
 
bool getDataSourceConfig (DataSourceConfig &config, const DataSourceConfig &defaults) const
 
bool getFitterAdaptivityConfig (AdaptivityConfiguration &config, const AdaptivityConfiguration &defaults) const
 
bool getFitterConfigType (FitterType &fitter, const FitterType &defaults) const
 
bool getFitterCrossvalidationConfig (CrossvalidationConfiguration &config, const CrossvalidationConfiguration &defaults) const
 
bool getFitterDatabaseConfig (datadriven::DatabaseConfiguration &config, const datadriven::DatabaseConfiguration &defaults) const
 Returns the database configuration of the fitter if it exists. More...
 
bool getFitterDensityEstimationConfig (DensityEstimationConfiguration &config, const DensityEstimationConfiguration &defaults) const
 
bool getFitterGridConfig (RegularGridConfiguration &config, const RegularGridConfiguration &defaults) const
 
bool getFitterLambda (double &lambda, double defaultValue) const
 
bool getFitterLearnerConfig (datadriven::LearnerConfiguration &config, const datadriven::LearnerConfiguration &defaults) const
 Initializes the learner configuration if it exists. More...
 
bool getFitterRegularizationConfig (RegularizationConfiguration &config, const RegularizationConfiguration &defaults) const
 
bool getFitterSolverFinalConfig (SLESolverConfiguration &config, const SLESolverConfiguration &defaults) const
 
bool getFitterSolverRefineConfig (SLESolverConfiguration &config, const SLESolverConfiguration &defaults) const
 
void getHPOConfig (HPOConfig &config)
 
std::string getHPOMethod (std::string defaultValue) const
 
void getHyperparameters (std::map< std::string, ContinuousParameter > &conpar, std::map< std::string, DiscreteParameter > &dispar, std::map< std::string, DiscreteParameter > &catpar, std::vector< base::GridType > &basisFunctions) const
 
bool getScorerConfig (ScorerConfiguration &config, const ScorerConfiguration &defaults) const
 Reads the configuration for the scorer. More...
 
bool hasDataSourceConfig () const
 
bool hasDataTransformationConfig () const
 
bool hasFitterConfig () const
 
bool hasFitterConfigCrossValidation () const
 Checks whether the fitter configuration contains a cross validation configuration. More...
 
bool hasScorerConfig () const
 
std::vector< int64_t > parseIntArray (DictNode &dict, const std::string &key, std::vector< int64_t > defaultValue, const std::string &parentNode) const
 
virtual ~DataMiningConfigParser ()
 

Constructor & Destructor Documentation

◆ DataMiningConfigParser()

sgpp::datadriven::DataMiningConfigParser::DataMiningConfigParser ( const std::string &  filepath)
explicit

◆ ~DataMiningConfigParser()

sgpp::datadriven::DataMiningConfigParser::~DataMiningConfigParser ( )
virtual

Member Function Documentation

◆ getDataSourceConfig()

◆ getFitterAdaptivityConfig()

◆ getFitterConfigType()

bool sgpp::datadriven::DataMiningConfigParser::getFitterConfigType ( FitterType fitter,
const FitterType defaults 
) const

◆ getFitterCrossvalidationConfig()

◆ getFitterDatabaseConfig()

bool sgpp::datadriven::DataMiningConfigParser::getFitterDatabaseConfig ( datadriven::DatabaseConfiguration config,
const datadriven::DatabaseConfiguration defaults 
) const

Returns the database configuration of the fitter if it exists.

Parameters
configthe configuration object that will be initialized
defaultsdefault values if the fitter does not contain a database configuration
Returns
whether the fitter contains a database configuration

References sgpp::datadriven::DatabaseConfiguration::filepath, and hasFitterConfig().

Referenced by sgpp::datadriven::FitterConfigurationDensityEstimation::readParams().

◆ getFitterDensityEstimationConfig()

◆ getFitterGridConfig()

◆ getFitterLambda()

bool sgpp::datadriven::DataMiningConfigParser::getFitterLambda ( double &  lambda,
double  defaultValue 
) const

◆ getFitterLearnerConfig()

bool sgpp::datadriven::DataMiningConfigParser::getFitterLearnerConfig ( datadriven::LearnerConfiguration config,
const datadriven::LearnerConfiguration defaults 
) const

Initializes the learner configuration if it exists.

Parameters
configthe configuration instance that will be initialized
defaultsdefault values if the fitter config does not contain a matching entry
Returns
whether the configuration contains a learner configuration

References sgpp::datadriven::LearnerConfiguration::beta, hasFitterConfig(), and sgpp::datadriven::LearnerConfiguration::usePrior.

Referenced by sgpp::datadriven::FitterConfigurationDensityEstimation::readParams().

◆ getFitterRegularizationConfig()

◆ getFitterSolverFinalConfig()

bool sgpp::datadriven::DataMiningConfigParser::getFitterSolverFinalConfig ( SLESolverConfiguration config,
const SLESolverConfiguration defaults 
) const

◆ getFitterSolverRefineConfig()

bool sgpp::datadriven::DataMiningConfigParser::getFitterSolverRefineConfig ( SLESolverConfiguration config,
const SLESolverConfiguration defaults 
) const

◆ getHPOConfig()

◆ getHPOMethod()

◆ getHyperparameters()

void sgpp::datadriven::DataMiningConfigParser::getHyperparameters ( std::map< std::string, ContinuousParameter > &  conpar,
std::map< std::string, DiscreteParameter > &  dispar,
std::map< std::string, DiscreteParameter > &  catpar,
std::vector< base::GridType > &  basisFunctions 
) const

◆ getScorerConfig()

bool sgpp::datadriven::DataMiningConfigParser::getScorerConfig ( ScorerConfiguration config,
const ScorerConfiguration defaults 
) const

Reads the configuration for the scorer.

Parameters
configthe configuration instance to initialize
defaultsa set of configurations initialized with default values
Returns
if the configuration file contained a scorer configuration

References hasScorerConfig(), sgpp::datadriven::ScorerConfiguration::metric, sgpp::datadriven::ScorerMetricTypeParser::parse(), and sgpp::datadriven::ScorerMetricTypeParser::toString().

Referenced by sgpp::datadriven::ScorerFactory::buildScorer().

◆ hasDataSourceConfig()

bool sgpp::datadriven::DataMiningConfigParser::hasDataSourceConfig ( ) const

◆ hasDataTransformationConfig()

bool sgpp::datadriven::DataMiningConfigParser::hasDataTransformationConfig ( ) const

References hasDataSourceConfig().

Referenced by getDataSourceConfig().

◆ hasFitterConfig()

◆ hasFitterConfigCrossValidation()

bool sgpp::datadriven::DataMiningConfigParser::hasFitterConfigCrossValidation ( ) const

Checks whether the fitter configuration contains a cross validation configuration.

Returns
if the fitter configuration contains a cross validation configuration

References hasFitterConfig().

Referenced by sgpp::datadriven::MinerFactory::buildMiner().

◆ hasScorerConfig()

bool sgpp::datadriven::DataMiningConfigParser::hasScorerConfig ( ) const

Referenced by getScorerConfig().

◆ parseIntArray()


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