12 #ifndef _SQUAREDHINGELOSS_H__
13 #define _SQUAREDHINGELOSS_H__
98 virtual const char*
get_name()
const {
return "SquaredHingeLoss"; }
103 #endif // _SQUAREDHINGELOSS_H__
float64_t loss(float64_t z)
Class CLossFunction is the base class of all loss functions.
float64_t second_derivative(float64_t z)
float64_t first_derivative(float64_t z)
virtual float64_t get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm)
virtual ELossType get_loss_type()
virtual float64_t get_square_grad(float64_t prediction, float64_t label)
all of classes and functions are contained in the shogun namespace
Class CSquaredHingeLoss implements a squared hinge loss function.
virtual const char * get_name() const
ELossType
shogun loss type