How does normalized mutual information evaluate a clustering against ground-truth labels?
Last updated
NMI measures how much knowing the cluster reduces uncertainty about the true class: mutual information I = H(Y) − H(Y|C) from the cluster-vs-class contingency table.
Raw MI is normalized by a mean of the entropies H(C) and H(Y), giving [0, 1] (1 = perfect match up to renaming, 0 = independent). With the arithmetic mean it equals V-measure.
It is not chance-adjusted, so random clusterings with many clusters still score above 0. Prefer
adjusted_mutual_info_score(AMI) when k is large or varies.