SG++-Doxygen-Documentation
|
Metric that quantifies the difference between predicted values and actual values in terms of mean squared error (MSE). More...
#include <MSE.hpp>
Public Member Functions | |
Metric * | clone () const override |
Polymorphic clone pattern. More... | |
double | measure (const DataVector &predictedValues, const DataVector &trueValues) const override |
Quantify the difference between predicted values and actual values in terms of mean squared error. More... | |
Public Member Functions inherited from sgpp::datadriven::Metric | |
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... | |
Metric that quantifies the difference between predicted values and actual values in terms of mean squared error (MSE).
MSE is defined strictly positive such that smaller values are better.
|
overridevirtual |
Polymorphic clone pattern.
Implements sgpp::datadriven::Metric.
|
overridevirtual |
Quantify the difference between predicted values and actual values in terms of mean squared error.
predictedValues | values calculated by the model for testing data |
trueValues | actual values as taken from the dataset. |
Implements sgpp::datadriven::Metric.
References sgpp::base::DataVector::getSize(), sgpp::base::DataVector::l2Norm(), sgpp::base::DataVector::sub(), and analyse_erg::tmp.