![]() |
SG++-Doxygen-Documentation
|
We use metrics to quantify approximation quality of a trained model. More...
#include <Metric.hpp>
Public Member Functions | |
virtual Metric * | clone () const =0 |
Polymorphic clone pattern. | |
virtual double | measure (const DataVector &predictedValues, const DataVector &trueValues, const ModelFittingBase &model, Dataset &testDataset) const =0 |
Quantify the difference between predicted values and actual values. | |
virtual double | measureLowerIsBetter (const DataVector &predictedValues, const DataVector &trueValues, const ModelFittingBase &model, Dataset &testDataset) const =0 |
Quantify the difference between predicted values and actual values, where lower values indicate a better result. | |
Metric ()=default | |
Default constructor. | |
Metric (const Metric &rhs)=default | |
Copy constructor. | |
Metric (Metric &&rhs)=default | |
Move constructor. | |
Metric & | operator= (const Metric &rhs)=default |
Copy assign operator. | |
Metric & | operator= (Metric &&rhs)=default |
Move assign operator. | |
virtual | ~Metric ()=default |
virtual destructor. | |
We use metrics to quantify approximation quality of a trained model.
It should be calculated in the way that smaller is always better. This means, for example that classification accuracy should be negated.
|
default |
Default constructor.
|
default |
Copy constructor.
rhs | const reference to the scorer object to copy from. |
|
default |
Move constructor.
rhs | R-value reference to a scorer object to moved from. |
|
virtualdefault |
virtual destructor.
|
pure virtual |
Polymorphic clone pattern.
Implemented in sgpp::datadriven::Accuracy, sgpp::datadriven::MSE, sgpp::datadriven::NegativeLogLikelihood, and sgpp::datadriven::ResidualScore.
|
pure virtual |
Quantify the difference between predicted values and actual values.
Does not have an inner state.
predictedValues | values calculated by the model for testing data |
trueValues | actual values as taken from the dataset. |
model | reference to the model |
testDataset | dataset with test data |
Implemented in sgpp::datadriven::Accuracy, sgpp::datadriven::MSE, sgpp::datadriven::NegativeLogLikelihood, and sgpp::datadriven::ResidualScore.
|
pure virtual |
Quantify the difference between predicted values and actual values, where lower values indicate a better result.
Does not have an inner state.
predictedValues | values calculated by the model for testing data |
trueValues | actual values as taken from the dataset. |
model | reference to the model |
testDataset | dataset with test data |
Implemented in sgpp::datadriven::Accuracy, sgpp::datadriven::MSE, sgpp::datadriven::NegativeLogLikelihood, and sgpp::datadriven::ResidualScore.
Copy assign operator.
rhs | const reference to the scorer object to copy from. |
Move assign operator.
rhs | R-value reference to an a scorer object to move from. |