Normalize confusion matrix relative to total cell count
Value
Symmetric matrix of pairwise R2-normalized confusion values. Values range from 0 to 1, representing the fraction of total cells misclassified between each cluster pair.
Details
R2 normalization measures the overall impact of confusion between cluster pairs on the entire dataset.
For each pair (i, j), compute: $$R2(i,j) = \frac{C_{ij} + C_{ji}}{N}$$
where:
\(C_{ij}\) = cells truly in cluster i but predicted as cluster j
\(C_{ji}\) = cells truly in cluster j but predicted as cluster i
\(N\) = total number of cells in the test set
This gives the fraction of total cells that are confused between clusters i and j. Unlike R1, R2 values are always between 0 and 1.