Skip to main content

Module precision_recall

Module precision_recall 

Source
Expand description

Precision–recall curve: threshold sweep producing (recall, precision) points and average precision (AP).

Structs§

PrCurve
A precision–recall curve: operating points, average precision, and the positive-class prevalence (the curve’s chance baseline).
PrPoint
A single operating point on a precision–recall curve.

Functions§

precision_recall_curve
Compute a precision–recall curve from predicted scores and true binary labels (true = positive class). Higher scores are “more positive”.