false_positive_rate¶
- probly.metrics.false_positive_rate = <flextype.singledispatch.Flexdispatch object>¶
Compute the false positive rate
FP / (FP + TN)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 negatives that are predicted positive, or NaN if there are no negative samples.
- Raises:
ValueError – If
y_predandy_truediffer in batch size.