Calculate Adjusted Rand Index (ARI)
Arguments
- pred
Predicted cluster labels.
- truth
Ground truth cell type labels.
Value
ARI value between -1 and 1.
Examples
pred <- factor(rep(c("A", "B"), each = 20))
truth <- factor(rep(c("A", "B"), each = 20))
calc_ari(pred, truth)
#> [1] 1