Calculates the derivative of the loss function with respect to the prediction
Calculates the derivative of the loss function with respect to the prediction
The predicted value
The true value
The derivative of the loss function
Calculates the loss for a given prediction/truth pair
Calculates the loss for a given prediction/truth pair
The predicted value
The true value
The loss
Hinge loss function which can be used with the GenericLossFunction
The HingeLoss function implements
max(0, 1 - prediction*label)
for binary classification with label in {-1, 1}