jaxopt.loss.multiclass_hinge_loss

jaxopt.loss.multiclass_hinge_loss(label, scores)[source]

Multiclass hinge loss.

Parameters
  • label (int) – ground-truth integer label.

  • scores (Array) – scores produced by the model (floats).

Return type

float

Returns

loss value

References

https://en.wikipedia.org/wiki/Hinge_loss