gcp_bigquery_client/model/
binary_confusion_matrix.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Confusion matrix for binary classification models.

#[derive(Debug, Default, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BinaryConfusionMatrix {
    /// The fraction of actual positive predictions that had positive actual labels.
    pub precision: Option<f64>,
    /// Number of false samples predicted as true.
    pub false_positives: Option<i64>,
    /// Threshold value used when computing each of the following metric.
    pub positive_class_threshold: Option<f64>,
    /// The fraction of predictions given the correct label.
    pub accuracy: Option<f64>,
    /// The fraction of actual positive labels that were given a positive prediction.
    pub recall: Option<f64>,
    /// The equally weighted average of recall and precision.
    pub f_1_score: Option<f64>,
    /// Number of true samples predicted as true.
    pub true_positives: Option<i64>,
    /// Number of false samples predicted as false.
    pub false_negatives: Option<i64>,
    /// Number of true samples predicted as false.
    pub true_negatives: Option<i64>,
}