probly.evaluation.ood.out_of_distribution_detection_fnr_at_x_tpr¶
- probly.evaluation.ood.out_of_distribution_detection_fnr_at_x_tpr(in_distribution: ndarray, out_distribution: ndarray, tpr_target: float = 0.95) float[source]¶
Perform out-of-distribution detection using false negative rate at a given true positive rate.
If no thresholds are specified, the default tpr_target is 0.95.
- Parameters:
in_distribution – In-distribution prediction functionals.
out_distribution – Out-of-distribution prediction functionals.
tpr_target – Target TPR value in (0, 1].
- Returns:
False negative rate at the first threshold where TPR >= tpr_target.