false_negative_rate

probly.metrics.false_negative_rate = <flextype.singledispatch.Flexdispatch object>

Compute the false negative rate FN / (FN + TP) of binary predictions.

Parameters:
  • y_pred – Predicted binary labels (0 or 1) of shape (n,).

  • y_true – Ground-truth binary labels (0 or 1) of shape (n,).

Returns:

The fraction of true positives that are predicted negative, or NaN if there are no positive samples.

Raises:

ValueError – If y_pred and y_true differ in batch size.