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

Factory to build the scorer. More...

#include <ScorerFactory.hpp>

Public Member Functions

ScorerbuildScorer (const DataMiningConfigParser &parser)
 Assemble a sgpp::datadriven::Scorer object based on the configuration. More...
 
 ScorerFactory ()=default
 Default constructor. More...
 
 ~ScorerFactory ()=default
 Destructor. More...
 

Protected Member Functions

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

Detailed Description

Factory to build the scorer.

Constructor & Destructor Documentation

◆ ScorerFactory()

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

Default constructor.

◆ ~ScorerFactory()

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

Destructor.

Member Function Documentation

◆ buildMetric()

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::accuracy, sgpp::datadriven::mse, and sgpp::datadriven::nll.

Referenced by buildScorer().

◆ buildScorer()

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

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.

References buildMetric(), sgpp::datadriven::DataMiningConfigParser::getScorerConfig(), and sgpp::datadriven::ScorerConfiguration::metric.


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