jaxopt.loss.multiclass_perceptron_loss
- jaxopt.loss.multiclass_perceptron_loss(label, scores)[source]
Binary perceptron loss.
- Parameters
label (
int
) – ground-truth integer label.scores (
Array
) – score produced by the model (float).
- Return type
float
- Returns
loss value.
References
Michael Collins. Discriminative training methods for Hidden Markov Models: Theory and experiments with perceptron algorithms. EMNLP 2002