Skip to main content

precision_recall_curve

Function precision_recall_curve 

Source
pub fn precision_recall_curve(
    scores: &[f64],
    labels: &[bool],
) -> Result<PrCurve, StatsError>
Expand description

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

§Errors