![]() |
SG++-Doxygen-Documentation
|
SparseGridMiner models the entire mining process for data mining with sparse grids. More...
#include <SparseGridMiner.hpp>
Public Member Functions | |
ModelFittingBase * | getModel () |
Returns the trained model. | |
Visualizer * | getVisualizer () |
virtual double | learn (bool verbose)=0 |
Perform Learning cycle: Get samples from data source and based on the scoring procedure, generalize data by fitting and asses quality of the fit. | |
SparseGridMiner & | operator= (const SparseGridMiner &rhs)=delete |
Default copy assign operator deleted because not all members can be copied. | |
SparseGridMiner & | operator= (SparseGridMiner &&rhs)=default |
Default Move assign operator. | |
void | setModel (ModelFittingBase *model) |
SparseGridMiner (const SparseGridMiner &rhs)=delete | |
Copy constructor deleted - not all members can be copied or cloned . | |
SparseGridMiner (ModelFittingBase *fitter, Scorer *scorer, Visualizer *visualizer) | |
Constructor. | |
SparseGridMiner (SparseGridMiner &&rhs)=default | |
Default Move constructor . | |
double | test (Dataset &testDataset) |
Evaluate the model on a certain test dataset. | |
virtual | ~SparseGridMiner ()=default |
Default destructor. | |
Static Public Member Functions | |
static void | print (const char *message) |
Print output on one process. | |
static void | print (const std::string &message) |
Print output on one process. | |
static void | print (std::ostringstream &messageStream) |
Print output on one process. | |
Protected Attributes | |
std::unique_ptr< ModelFittingBase > | fitter |
Fitter that trains a model based on data samples. | |
std::unique_ptr< Scorer > | scorer |
Scorer that quantifies the quality of a fit. | |
std::unique_ptr< Visualizer > | visualizer |
SparseGridMiner models the entire mining process for data mining with sparse grids.
It aggregates and automates data input, fitting and validation modules and controls the mining process.
sgpp::datadriven::SparseGridMiner::SparseGridMiner | ( | ModelFittingBase * | fitter, |
Scorer * | scorer, | ||
Visualizer * | visualizer | ||
) |
Constructor.
fitter | configured instance of fitter object that generalize the model. The miner instance will take ownership of the passed object. |
scorer | configured instance of scorer object that will assess the quality of the generalization provided by the fitter on testing data. The miner instance will take ownership of the passed object. |
visualizer | configured instance of the visualizer object that will execute the visualization module of the model. The miner instance will take ownership of the passed object |
|
delete |
Copy constructor deleted - not all members can be copied or cloned .
rhs | the object to copy from |
|
default |
Default Move constructor .
rhs | the object to move from |
|
virtualdefault |
Default destructor.
ModelFittingBase * sgpp::datadriven::SparseGridMiner::getModel | ( | ) |
Returns the trained model.
Visualizer * sgpp::datadriven::SparseGridMiner::getVisualizer | ( | ) |
|
pure virtual |
Perform Learning cycle: Get samples from data source and based on the scoring procedure, generalize data by fitting and asses quality of the fit.
Implemented in sgpp::datadriven::SparseGridMinerCrossValidation, sgpp::datadriven::SparseGridMinerSplitting, and sgpp::datadriven::SparseGridMinerSplittingTwoDatasets.
|
delete |
Default copy assign operator deleted because not all members can be copied.
rhs | the object to copy from |
|
default |
Default Move assign operator.
rhs | the object to move from |
|
static |
|
static |
Print output on one process.
message |
References sgpp::datadriven::BlacsProcessGrid::getCurrentProcess().
Referenced by sgpp::datadriven::SparseGridMinerCrossValidation::learn(), sgpp::datadriven::SparseGridMinerSplitting::learn(), sgpp::datadriven::SparseGridMinerSplitting::optimizeLambda(), print(), and print().
|
static |
Print output on one process.
messageStream | stream with the concatenated message |
References print().
void sgpp::datadriven::SparseGridMiner::setModel | ( | ModelFittingBase * | model | ) |
References fitter, and sgpp::datadriven::ModelFittingBase::reset().
double sgpp::datadriven::SparseGridMiner::test | ( | Dataset & | testDataset | ) |
Evaluate the model on a certain test dataset.
testDataset | dataset used quantify accuracy using sgpp::datadriven::Metric. |
|
protected |
Fitter that trains a model based on data samples.
Referenced by sgpp::datadriven::SparseGridMinerSplitting::evaluateLambda(), sgpp::datadriven::SparseGridMinerCrossValidation::learn(), sgpp::datadriven::SparseGridMinerSplitting::learn(), sgpp::datadriven::SparseGridMinerSplittingTwoDatasets::learn(), sgpp::datadriven::SparseGridMinerSplitting::optimizeLambda(), setModel(), and test().
|
protected |
Scorer that quantifies the quality of a fit.
(e.g. cross validation or training with testing)
Referenced by sgpp::datadriven::SparseGridMinerSplitting::evaluateLambda(), sgpp::datadriven::SparseGridMinerCrossValidation::learn(), sgpp::datadriven::SparseGridMinerSplitting::learn(), sgpp::datadriven::SparseGridMinerSplittingTwoDatasets::learn(), and test().
|
protected |