SG++
sgpp::datadriven::ScorerFactory Class Referenceabstract

Abstract factory to build all kinds of scorers based on a given configuration. More...

#include <ScorerFactory.hpp>

Inheritance diagram for sgpp::datadriven::ScorerFactory:
sgpp::datadriven::CrossValidationScorerFactory sgpp::datadriven::SplittingScorerFactory

Public Member Functions

virtual ScorerbuildScorer (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

MetricbuildMetric (ScorerMetricType config) const
 Build a sgpp::datadriven::Metric object based on the given metric type enum value. More...
 
ShufflingFunctorbuildShuffling (ScorerShufflingType config) const
 Build a sgpp::datadriven::ShufflingFunctor object based on the the given shuffling type enum value. More...
 

Detailed Description

Abstract factory to build all kinds of scorers based on a given configuration.

Constructor & Destructor Documentation

sgpp::datadriven::ScorerFactory::ScorerFactory ( )
default

Default constructor.

virtual sgpp::datadriven::ScorerFactory::~ScorerFactory ( )
virtualdefault

Virtual destructor.

Member Function Documentation

Metric * sgpp::datadriven::ScorerFactory::buildMetric ( ScorerMetricType  config) const
protected

Build a sgpp::datadriven::Metric object based on the given metric type enum value.

Parameters
configsgpp::datadriven::ScorerMetricType describing which sgpp::datadriven::Metric to generate.
Returns
Fully configured instance of a sgpp::datadriven::Metric object.

References sgpp::datadriven::mse.

Referenced by sgpp::datadriven::CrossValidationScorerFactory::buildScorer(), and sgpp::datadriven::SplittingScorerFactory::buildScorer().

virtual Scorer* sgpp::datadriven::ScorerFactory::buildScorer ( const DataMiningConfigParser parser) const
pure virtual

Assemble a sgpp::datadriven::Scorer object based on the configuration.

Parameters
parserInstance of sgpp::datadriven::DataMiningConfigParser that reads the required data from the config file.
Returns
Fully configured instance of a sgpp::datadriven::Scorer object.

Implemented in sgpp::datadriven::SplittingScorerFactory, and sgpp::datadriven::CrossValidationScorerFactory.

ShufflingFunctor * sgpp::datadriven::ScorerFactory::buildShuffling ( ScorerShufflingType  config) const
protected

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