jaxopt.loss.binary_logistic_loss

jaxopt.loss.binary_logistic_loss(label, logit)[source]

Binary logistic loss.

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

  • logit (float) – score produced by the model (float).

Return type

float

Returns

loss value