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. More... | |
virtual double | measure (const DataVector &predictedValues, const DataVector &trueValues) const =0 |
Quantify the difference between predicted values and actual values. More... | |
Metric ()=default | |
Default constructor. More... | |
Metric (const Metric &rhs)=default | |
Copy constructor. More... | |
Metric (Metric &&rhs)=default | |
Move constructor. More... | |
Metric & | operator= (const Metric &rhs)=default |
Copy assign operator. More... | |
Metric & | operator= (Metric &&rhs)=default |
Move assign operator. More... | |
virtual | ~Metric ()=default |
virtual destructor. More... | |
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::NegativeLogLikelihood, sgpp::datadriven::Accuracy, and sgpp::datadriven::MSE.
|
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. |
Implemented in sgpp::datadriven::NegativeLogLikelihood, sgpp::datadriven::Accuracy, and sgpp::datadriven::MSE.
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. |