SG++-Doxygen-Documentation
|
Abstract factory to build different kinds of Miners based on a configuration which is parsed from a file. More...
#include <MinerFactory.hpp>
Public Member Functions | |
virtual sgpp::datadriven::HyperparameterOptimizer * | buildHPO (const std::string &path) const |
virtual SparseGridMiner * | buildMiner (const std::string &path) const |
Factory method to build a miner object based on a configuration file. More... | |
MinerFactory ()=default | |
Default constructor. More... | |
virtual | ~MinerFactory ()=default |
Virtual destructor. More... | |
Protected Member Functions | |
virtual DataSourceCrossValidation * | createDataSourceCrossValidation (const DataMiningConfigParser &parser) const |
Factory method to build a cross validation data source, i.e. More... | |
virtual DataSourceSplitting * | createDataSourceSplitting (const DataMiningConfigParser &parser) const |
Factory method to build a splitting based data source, i.e. More... | |
virtual ModelFittingBase * | createFitter (const DataMiningConfigParser &parser) const =0 |
Build an instance of a sgpp::datadriven::ModelFittingBase object as specified in the configuration file. More... | |
virtual FitterFactory * | createFitterFactory (const DataMiningConfigParser &parser) const =0 |
virtual Scorer * | createScorer (const DataMiningConfigParser &parser) const |
Factory method to build a scorer instance base d on a configuration file. More... | |
Abstract factory to build different kinds of Miners based on a configuration which is parsed from a file.
A miner consists of a data source, a fitter and a scorer. A concrete Factory class has to implement the required interfaces.
|
default |
Default constructor.
|
virtualdefault |
Virtual destructor.
|
virtual |
Reimplemented in sgpp::datadriven::DensityEstimationMinerFactory.
References buildMiner(), createFitterFactory(), sgpp::datadriven::DataMiningConfigParser::getHPOMethod(), and create_dataset::parser.
Referenced by main().
|
virtual |
Factory method to build a miner object based on a configuration file.
path | Path to a configuration file that defines the structure of the miner object. |
References createDataSourceCrossValidation(), createDataSourceSplitting(), createFitter(), createScorer(), sgpp::datadriven::DataMiningConfigParser::hasFitterConfigCrossValidation(), and create_dataset::parser.
Referenced by sgpp::datadriven::DensityEstimationMinerFactory::buildHPO(), buildHPO(), and main().
|
protectedvirtual |
Factory method to build a cross validation data source, i.e.
a data source that can seperate one fold from the data as validation set and use the rest for training
parser | the datamining configuration parser instance to create the data source from |
References sgpp::datadriven::DataSourceBuilder::crossValidationFromConfig(), sgpp::datadriven::DataMiningConfigParser::getDataSourceConfig(), and sgpp::datadriven::DataMiningConfigParser::getFitterCrossvalidationConfig().
Referenced by buildMiner().
|
protectedvirtual |
Factory method to build a splitting based data source, i.e.
a data source that splits data into validation and training data.
parser | the datamining configuration parser instance to create the data source from |
References sgpp::datadriven::DataMiningConfigParser::getDataSourceConfig(), and sgpp::datadriven::DataSourceBuilder::splittingFromConfig().
Referenced by buildMiner().
|
protectedpure virtual |
Build an instance of a sgpp::datadriven::ModelFittingBase object as specified in the configuration file.
parser | parser object that provides methods to query the configuration file. |
Referenced by buildMiner().
|
protectedpure virtual |
Referenced by buildHPO().
|
protectedvirtual |
Factory method to build a scorer instance base d on a configuration file.
parser | the datamining configuration parser instance to create the scorer from |
Referenced by buildMiner().