binary_logistic_loss

binary_logistic_loss#

class brainpy.losses.binary_logistic_loss(predicts, targets)[source]#

Binary logistic loss.

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

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

Return type:

float

Returns:

loss value