Class CostFunction

Inheritance Relationships

Derived Type

Class Documentation

class CostFunction

The CostFunction class.

Currently not used. Test implementation to see if we can abstract things a bit more.

Subclassed by parpe::MeanSquaredError

Public Functions

virtual ~CostFunction() = default
inline virtual void evaluate(std::vector<double> const &label, std::vector<double> const &prediction, double &cost) const
virtual void evaluate(std::vector<double> const &label, std::vector<double> const &prediction, int numParameters, std::vector<double*> predictionGradient, double &cost, double *gradient) const = 0