View source: R/utils-evaluation.R
| cluster_agreement | R Documentation |
Computes the adjusted Rand index (ARI), normalised mutual information (NMI) and pairwise Jaccard between two label vectors of equal length.
cluster_agreement(a, b)
a, b |
Integer/character/factor label vectors of equal length. |
ARI rule of thumb: >0.90 excellent; 0.75-0.90 good;
0.50-0.75 moderate; <0.50 weak.
A named numeric vector c(ARI, NMI, Jaccard).
cluster_agreement(c(1, 1, 2, 2), c(2, 2, 1, 1)) # identical up to relabel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.