all_threshold_metrics

Function all_threshold_metrics 

Source
pub fn all_threshold_metrics<S1, S2>(
    y_true: &ArrayBase<S1, Ix1>,
    y_score: &ArrayBase<S2, Ix1>,
) -> Result<Vec<ThresholdMetrics>>
where S1: Data, S2: Data, S1::Elem: Clone + Into<f64> + PartialEq, S2::Elem: Clone + Into<f64> + PartialOrd,
Expand description

Calculate metrics at all possible thresholds

§Arguments

  • y_true - Binary true labels (0 or 1)
  • y_score - Predicted scores (probabilities)

§Returns

  • Result<Vec<ThresholdMetrics>> - Metrics at all thresholds