Skip to main content

Module precision_recall_curve

Module precision_recall_curve 

Source
Expand description

Precision–recall curve series.

Mirrors RocCurve’s construction and rendering, but the baseline is the positive-class prevalence (a horizontal line), not a diagonal — getting this right is the whole reason PR is a separate type rather than a copy of ROC. The computed average precision is exposed for the legend.

Structs§

PrecisionRecallCurve
A single precision–recall curve as a drawable series (coordinate space (f64, f64) = (recall, precision)).