pub fn classification_report(y_pred: &[usize], y_true: &[usize]) -> StringExpand description
Generate sklearn-style classification report
§Arguments
y_pred- Predicted class labelsy_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);