24 return (prediction - label) * (prediction - label);
34 return 2. * (prediction - label);
60 return (label - prediction)*eta_t/
norm;
62 return (label - prediction)*(1-exp(-eta_t))/norm;
67 return (prediction - label) * (prediction - label);
double norm(double *v, double p, int n)
float64_t first_derivative(float64_t prediction, float64_t label)
virtual float64_t get_square_grad(float64_t prediction, float64_t label)
float64_t second_derivative(float64_t prediction, float64_t label)
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)