![]() |
SG++
|
Abstract factory to build all kinds of scorers based on a given configuration. More...
#include <ScorerFactory.hpp>
Public Member Functions | |
virtual Scorer * | buildScorer (const DataMiningConfigParser &parser) const =0 |
Assemble a sgpp::datadriven::Scorer object based on the configuration. More... | |
ScorerFactory ()=default | |
Default constructor. More... | |
virtual | ~ScorerFactory ()=default |
Virtual destructor. More... | |
Protected Member Functions | |
Metric * | buildMetric (ScorerMetricType config) const |
Build a sgpp::datadriven::Metric object based on the given metric type enum value. More... | |
ShufflingFunctor * | buildShuffling (ScorerShufflingType config) const |
Build a sgpp::datadriven::ShufflingFunctor object based on the the given shuffling type enum value. More... | |
Abstract factory to build all kinds of scorers based on a given configuration.
|
default |
Default constructor.
|
virtualdefault |
Virtual destructor.
|
protected |
Build a sgpp::datadriven::Metric object based on the given metric type enum value.
config | sgpp::datadriven::ScorerMetricType describing which sgpp::datadriven::Metric to generate. |
References sgpp::datadriven::mse.
Referenced by sgpp::datadriven::CrossValidationScorerFactory::buildScorer(), and sgpp::datadriven::SplittingScorerFactory::buildScorer().
|
pure virtual |
Assemble a sgpp::datadriven::Scorer object based on the configuration.
parser | Instance of sgpp::datadriven::DataMiningConfigParser that reads the required data from the config file. |
Implemented in sgpp::datadriven::SplittingScorerFactory, and sgpp::datadriven::CrossValidationScorerFactory.
|
protected |
Build a sgpp::datadriven::ShufflingFunctor object based on the the given shuffling type enum value.
config | sgpp::datadriven::ScorerShufflingType describing which sgpp::datadriven::ShufflingFunctor to generate. |
References sgpp::datadriven::random, and sgpp::datadriven::sequential.
Referenced by sgpp::datadriven::CrossValidationScorerFactory::buildScorer(), and sgpp::datadriven::SplittingScorerFactory::buildScorer().