45 return loss(prediction-label);
66 return (z>0)?m_delta:-m_delta;
94 void CHuberLoss::init()
Class CLossFunction is the base class of all loss functions.
#define SG_NOTIMPLEMENTED
virtual float64_t get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm)
all of classes and functions are contained in the shogun namespace
float64_t second_derivative(float64_t prediction, float64_t label)
virtual float64_t get_square_grad(float64_t prediction, float64_t label)
float64_t first_derivative(float64_t prediction, float64_t label)
float64_t loss(float64_t prediction, float64_t label)