use serde::{Deserialize, Serialize}; /*
                                      * BigQuery API
                                      *
                                      * A data platform for customers to create, manage, share and query data.
                                      *
                                      * The version of the OpenAPI document: v2
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// BinaryClassificationMetrics : Evaluation metrics for binary classification/classifier models.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BinaryClassificationMetrics {
    #[serde(
        rename = "aggregateClassificationMetrics",
        skip_serializing_if = "Option::is_none"
    )]
    pub aggregate_classification_metrics:
        Option<Box<crate::google_rest_apis::bigquery_v2::models::AggregateClassificationMetrics>>,
    /// Binary confusion matrix at multiple thresholds.
    #[serde(
        rename = "binaryConfusionMatrixList",
        skip_serializing_if = "Option::is_none"
    )]
    pub binary_confusion_matrix_list:
        Option<Vec<crate::google_rest_apis::bigquery_v2::models::BinaryConfusionMatrix>>,
    /// Label representing the negative class.
    #[serde(rename = "negativeLabel", skip_serializing_if = "Option::is_none")]
    pub negative_label: Option<String>,
    /// Label representing the positive class.
    #[serde(rename = "positiveLabel", skip_serializing_if = "Option::is_none")]
    pub positive_label: Option<String>,
}

impl BinaryClassificationMetrics {
    /// Evaluation metrics for binary classification/classifier models.
    pub fn new() -> BinaryClassificationMetrics {
        BinaryClassificationMetrics {
            aggregate_classification_metrics: None,
            binary_confusion_matrix_list: None,
            negative_label: None,
            positive_label: None,
        }
    }
}
