![]() |
SG++-Doxygen-Documentation
|
Metric that quantifies the likelihood of a dataset given the density function. More...
#include <NegativeLogLikelihood.hpp>
Public Member Functions | |
Metric * | clone () const override |
Standard clone method. | |
double | measure (const DataVector &predictedValues, const DataVector &trueValues, const ModelFittingBase &model, Dataset &testDataset) const override |
Quantify the NLL of the predicted values (i.e. | |
double | measureLowerIsBetter (const DataVector &predictedValues, const DataVector &trueValues, const ModelFittingBase &model, Dataset &testDataset) const override |
Quantify the NLL of the predicted values (i.e. | |
![]() | |
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 quantifies the likelihood of a dataset given the density function.
The smaller the negative log likelihood the better the fit
|
overridevirtual |
|
overridevirtual |
Quantify the NLL of the predicted values (i.e.
adding the logs of the predicted values and ignorign the true values). Note that probabilities <= 0 are simply ignored (the model can provide those)
predictedValues | probabilites calculated by the model for testing data |
trueValues | ignored |
model | reference to the model |
testDataset | dataset with test data |
Implements sgpp::datadriven::Metric.
References sgpp::base::DataVector::get().
Referenced by measureLowerIsBetter().
|
overridevirtual |
Quantify the NLL of the predicted values (i.e.
adding the logs of the predicted values and ignorign the true values). Note that probabilities <= 0 are simply ignored (the model can provide those)
predictedValues | probabilites calculated by the model for testing data |
trueValues | ignored |
model | reference to the model |
testDataset | dataset with test data |
Implements sgpp::datadriven::Metric.
References measure().