Accuracy for pair data
Computes similarity between two clusters assignments (C and K) by considering all pairs of sample and counting pairs that are assigned in the same or different clusters in two assignments
- : number of pairs of elements that are in the same set in C and in the same set in K
- : number of pairs of elements that are in different sets in C and in different sets in K
- : total number of pairs in the dataset
Score between 0 and 1. 1 is the perfect match score.
adjusted rand index)
It can be adjusted for chance (adjusted rand index) or with expected RI