Skip to main content

adjusted_rand_score

Function adjusted_rand_score 

Source
pub fn adjusted_rand_score(labels_true: &[usize], labels_pred: &[usize]) -> f32
Expand description

Adjusted Rand Index — similarity between two clusterings corrected for chance, matching sklearn.metrics.adjusted_rand_score. Range ~[-0.5, 1] (1 = identical).