eval_toolkit.thresholds#

CISafeThresholdSelector

Select a threshold whose rate confidence bounds satisfy constraints.

CostSensitiveSelector

Bayes-optimal threshold from a CostMatrix.

MaxF1Selector

Argmax F1 over the PR curve.

TargetFPRSelector

Smallest threshold meeting FPR ≤ target — highest-TPR feasible ROC point.

TargetPrecisionSelector

Smallest threshold meeting precision ≥ target — highest-recall feasible point.

TargetRecallSelector

Highest threshold meeting recall ≥ target — most-precise feasible point.

ThresholdPolicyMetadata

Pre-registration metadata for thresholded operating claims.

ThresholdSelector

Selects a decision threshold from (y_true, y_score).

WilsonInterval

Wilson score interval for a binomial rate.

YoudenJSelector

Argmax of Youden's J statistic J = TPR FPR over the ROC curve.

select_threshold

Dispatch to a ThresholdSelector instance.

wilson_interval

Wilson score interval for a binomial rate.