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
                                      */

use crate::google_rest_apis::bigquery_v2::models;

/// DimensionalityReductionMetrics : Model evaluation metrics for dimensionality reduction models.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DimensionalityReductionMetrics {
    /// Total percentage of variance explained by the selected principal components.
    #[serde(
        rename = "totalExplainedVarianceRatio",
        skip_serializing_if = "Option::is_none"
    )]
    pub total_explained_variance_ratio: Option<f64>,
}

impl DimensionalityReductionMetrics {
    /// Model evaluation metrics for dimensionality reduction models.
    pub fn new() -> DimensionalityReductionMetrics {
        DimensionalityReductionMetrics {
            total_explained_variance_ratio: None,
        }
    }
}
