Skip to main content

Module classification

Module classification 

Source
Expand description

Classification metrics for model evaluation

Provides multi-class classification metrics including:

  • Confusion matrix computation
  • Per-class precision, recall, F1
  • Macro, micro, and weighted averaging
  • sklearn-style classification reports

Structs§

ConfusionMatrix
Confusion matrix for multi-class classification
MultiClassMetrics
Multi-class classification metrics

Enums§

Average
Averaging strategy for multi-class metrics

Functions§

classification_report
Generate sklearn-style classification report
confusion_matrix
Compute confusion matrix from predictions and ground truth