gcp_bigquery_client/model/binary_confusion_matrix.rs
1//! Confusion matrix for binary classification models.
2
3#[derive(Debug, Default, Clone, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct BinaryConfusionMatrix {
6 /// The fraction of actual positive predictions that had positive actual labels.
7 pub precision: Option<f64>,
8 /// Number of false samples predicted as true.
9 pub false_positives: Option<i64>,
10 /// Threshold value used when computing each of the following metric.
11 pub positive_class_threshold: Option<f64>,
12 /// The fraction of predictions given the correct label.
13 pub accuracy: Option<f64>,
14 /// The fraction of actual positive labels that were given a positive prediction.
15 pub recall: Option<f64>,
16 /// The equally weighted average of recall and precision.
17 pub f_1_score: Option<f64>,
18 /// Number of true samples predicted as true.
19 pub true_positives: Option<i64>,
20 /// Number of false samples predicted as false.
21 pub false_negatives: Option<i64>,
22 /// Number of true samples predicted as false.
23 pub true_negatives: Option<i64>,
24}