![]() |
SG++-Doxygen-Documentation
|
Metric that is based on a residual score of the model. More...
#include <ResidualScore.hpp>
Public Member Functions | |
Metric * | clone () const override |
Polymorphic clone pattern. | |
double | measure (const DataVector &predictedValues, const DataVector &trueValues, const ModelFittingBase &model, Dataset &testDataset) const override |
Measure the quality of the trained model. | |
double | measureLowerIsBetter (const DataVector &predictedValues, const DataVector &trueValues, const ModelFittingBase &model, Dataset &testDataset) const override |
Measure the quality of the trained model. | |
![]() | |
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. | |
Metric that is based on a residual score of the model.
For density estimation, this is || R * alpha_lambda - b_val ||_2
|
overridevirtual |
Polymorphic clone pattern.
Implements sgpp::datadriven::Metric.
|
overridevirtual |
Measure the quality of the trained model.
Gives the metric access to the trained model, as this is required for some scores.
predictedValues | ignored |
trueValues | ignored |
model | reference to the model |
testDataset | dataset with test data |
Implements sgpp::datadriven::Metric.
References sgpp::datadriven::ModelFittingBase::computeResidual(), and sgpp::datadriven::Dataset::getData().
Referenced by measureLowerIsBetter().
|
overridevirtual |
Measure the quality of the trained model.
Gives the metric access to the trained model, as this is required for some scores.
predictedValues | ignored |
trueValues | ignored |
model | reference to the model |
testDataset | dataset with test data |
Implements sgpp::datadriven::Metric.
References measure().