incerto.ood.compute_threshold_at_tpr#
- incerto.ood.compute_threshold_at_tpr(id_scores, target_tpr=0.95)[source]#
Compute OOD score threshold that accepts
target_tprfraction of ID samples.The threshold is set at the
target_tpr-th percentile of the ID score distribution, so thattarget_tprof in-distribution samples fall below it (i.e. are correctly classified as ID).