Compute the Calinski and Harabaz score.
The score is defined as ratio between the within-cluster dispersion and the between-cluster dispersion.
Read more in the User Guide.
X : array-like, shape (
n_features-dimensional data points. Each row corresponds to a single data point.
labels : array-like, shape (
Predicted labels for each sample.
score: float :
The resulting Calinski-Harabaz score.
[R198] T. Calinski and J. Harabasz, 1974. “A dendrite method for cluster analysis”. Communications in Statistics