quantrs2_ml/clustering/
metrics.rs

1//! Clustering evaluation metrics
2
3/// Clustering evaluation metrics
4#[derive(Debug, Clone)]
5pub struct ClusteringMetrics {
6    pub silhouette_score: f64,
7    pub calinski_harabasz_score: f64,
8    pub davies_bouldin_score: f64,
9    pub adjusted_rand_index: f64,
10    pub adjusted_mutual_info: f64,
11}
12
13impl ClusteringMetrics {
14    pub fn new() -> Self {
15        Self {
16            silhouette_score: 0.0,
17            calinski_harabasz_score: 0.0,
18            davies_bouldin_score: 0.0,
19            adjusted_rand_index: 0.0,
20            adjusted_mutual_info: 0.0,
21        }
22    }
23}