Skip to main content

classification_report

Function classification_report 

Source
pub fn classification_report(y_pred: &[usize], y_true: &[usize]) -> String
Expand description

Generate sklearn-style classification report

§Arguments

  • y_pred - Predicted class labels
  • y_true - Ground truth class labels

§Returns

A formatted string containing per-class and overall metrics

§Example

use entrenar::eval::classification_report;

let report = classification_report(&y_pred, &y_true);
println!("{}", report);