Function classifier_measures::pr_mut [] [src]

pub fn pr_mut<F: Float>(pairs: &mut [(bool, F)]) -> Option<(Vec<F>, Vec<F>)>

Computes a PR curve of a given classifier sorting pairs in-place.

Returns None if one of the classes is not present or any values are non-finite. Otherwise, returns Some((v_x, v_y)) where v_x are the x-coordinates and v_y are the y-coordinates of the PR curve.