Skip to main content

gain_curve

Function gain_curve 

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

Compute the cumulative gain / lift curve from predicted scores and true binary labels. Points are ordered by descending score and always start at fraction == 0, gain == 0.

ยงErrors