rand_score
- sklearn.metrics.rand_score(labels_true, labels_pred)
Rand index.
The Rand Index computes a similarity measure between two clusterings by considering all pairs of samples and counting pairs that are assigned in the same or different clusters in the predicted and true clusterings [1] [2].
The raw RI score [3] is:
RI = (number of agreeing pairs) / (number of pairs)