Function pr_auc_mut

Source
pub fn pr_auc_mut<F: Float>(pairs: &mut [(bool, F)]) -> Option<F>
Expand description

Computes the area under 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(area_under_curve).