HingeLoss
Hinge Loss for SVM-style classification.
Hinge(pred, target) = max(0, margin - target * pred)
Targets should be in {-1, +1} for binary classification. The loss is 0 when the prediction has the correct sign and magnitude > margin.
Parameters
margin
The margin parameter. Default is 1.0.