17 #ifndef _SQUAREDLOSS_H__
18 #define _SQUAREDLOSS_H__
128 virtual const char*
get_name()
const {
return "SquaredLoss"; }
virtual ELossType get_loss_type()
Class CLossFunction is the base class of all loss functions.
float64_t first_derivative(float64_t prediction, float64_t label)
virtual float64_t get_square_grad(float64_t prediction, float64_t label)
virtual const char * get_name() const
float64_t second_derivative(float64_t prediction, float64_t label)
CSquaredLoss implements the squared loss function.
all of classes and functions are contained in the shogun namespace
float64_t loss(float64_t prediction, float64_t label)
virtual float64_t get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm)
ELossType
shogun loss type