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

Convenience class to convert strings to sgpp::datadriven::ScorerMetricType and generate string representations for values of sgpp::datadriven::ScorerMetricType. More...

#include <ScorerMetricTypeParser.hpp>

Static Public Member Functions

static ScorerMetricType parse (const std::string &input)
 Convert strings to values sgpp::datadriven::ScorerMetricType. More...
 
static const std::string & toString (ScorerMetricType type)
 generate string representations for values of sgpp::datadriven::ScorerMetricType. More...
 

Detailed Description

Convenience class to convert strings to sgpp::datadriven::ScorerMetricType and generate string representations for values of sgpp::datadriven::ScorerMetricType.

Member Function Documentation

ScorerMetricType sgpp::datadriven::ScorerMetricTypeParser::parse ( const std::string &  input)
static

Convert strings to values sgpp::datadriven::ScorerMetricType.

Throws if there is no valid representation

Parameters
inputcase insensitive string representation of a sgpp::datadriven::ScorerMetricType.
Returns
the corresponding sgpp::datadriven::ScorerMetricType.

References sgpp::datadriven::accuracy, sgpp::datadriven::mse, and sgpp::datadriven::nll.

Referenced by sgpp::datadriven::DataMiningConfigParser::getScorerConfig().

const std::string & sgpp::datadriven::ScorerMetricTypeParser::toString ( ScorerMetricType  type)
static

generate string representations for values of sgpp::datadriven::ScorerMetricType.

Parameters
typeenum value.
Returns
string representation of a sgpp::datadriven::ScorerMetricType.

Referenced by sgpp::datadriven::DataMiningConfigParser::getScorerConfig().


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