Processing math: 100%

For the clusterings from two methods, first the cluster labels are adjusted. Denote s1 as the label vector for method 1, s2 as the label vector for method 2, and s1 as the reference labels, we apply clue::solve_LSAP() function to generate a mapping function m() between the two sets of labels to maximize niI(s1i,m(s2i)) where n is the length of s1 or s2. Denote the adjusted labels for the second method as s2i=m(s2i), the concordance between the two clusterings are calculated as:

1nniI(s1i,s2i)

where I(x,y) is an indicator function with value 1 if x=y and 0 if xy. A concordance of 1 means the two clusterings are identical.