17 #ifndef _LOSSFUNCTION_H__
18 #define _LOSSFUNCTION_H__
81 return loss(prediction * label);
103 return loss(prediction * label);
125 return loss(prediction * label);
173 virtual const char*
get_name()
const {
return "LossFunction"; }
176 #endif // _LOSSFUNCTION_H__
double norm(double *v, double p, int n)
Class CLossFunction is the base class of all loss functions.
virtual float64_t get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm)=0
virtual ELossType get_loss_type()=0
Class SGObject is the base class of all shogun objects.
virtual const char * get_name() const
virtual float64_t loss(float64_t prediction, float64_t label)
all of classes and functions are contained in the shogun namespace
virtual float64_t second_derivative(float64_t prediction, float64_t label)
virtual float64_t first_derivative(float64_t prediction, float64_t label)
ELossType
shogun loss type
virtual float64_t get_square_grad(float64_t prediction, float64_t label)=0