Normalize confusion matrix relative to correctly classified cells
Value
Symmetric matrix of pairwise R1-normalized confusion values. Values typically range from 0 to >1 (can exceed 1 when misclassifications outnumber correct classifications).
Details
R1 normalization measures the confusion rate between cluster pairs relative to the number of correctly classified cells.
For each pair (i, j), compute: $$R1(i,j) = \max\left(\frac{C_{ij}}{C_{jj}}, \frac{C_{ji}}{C_{ii}}\right)$$
where:
\(C_{ij}\) = cells truly in cluster i but predicted as cluster j
\(C_{jj}\) = cells truly in cluster j and correctly predicted (diagonal)
The ratio \(C_{ij}/C_{jj}\) represents how many cells from cluster i are misclassified as j, relative to the correctly classified cells in j. A high R1 value indicates substantial confusion between the cluster pair.