gcp_bigquery_client/model/
clustering_metrics.rs

1//! Evaluation metrics for clustering models.
2use crate::model::cluster::Cluster;
3
4#[derive(Debug, Default, Clone, Serialize, Deserialize)]
5#[serde(rename_all = "camelCase")]
6pub struct ClusteringMetrics {
7    /// Davies-Bouldin index.
8    pub davies_bouldin_index: Option<f64>,
9    /// Mean of squared distances between each sample to its cluster centroid.
10    pub mean_squared_distance: Option<f64>,
11    /// Information for all clusters.
12    pub clusters: Option<Vec<Cluster>>,
13}