1
2
3
4
5
6
7
8
9
10
11
//! Confusion matrix for multi-class classification models.
use crate::model::row::Row;

#[derive(Debug, Default, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ConfusionMatrix {
    /// One row per actual label.
    pub rows: Option<Vec<Row>>,
    /// Confidence threshold used when computing the entries of the confusion matrix.
    pub confidence_threshold: Option<f64>,
}