Documentation
API
Examples
About
Binary perceptron loss.
label (int) – ground-truth integer label (0 or 1).
int
score (float) – score produced by the model (float).
float
loss value.
References
https://en.wikipedia.org/wiki/Perceptron