Skip to main content

roc_curve

Function roc_curve 

Source
pub fn roc_curve(
    scores: &[f32],
    labels: &[bool],
) -> Result<(Vec<f32>, Vec<f32>, Vec<f32>), EvalError>
Expand description

Compute ROC curve from binary classification scores and labels.

Returns (fpr, tpr, thresholds) — sorted by decreasing threshold.