Description Usage Arguments Value References Examples
An Adjusted Rand Index comparison of the assignments between different clustering algorithms.
1 |
... |
A series of outputs from |
Returns a pair-wise comparison matrix of Adjusted Rand Indices for algorithm. Higher Adjusted Rand Index scores indicate higher cluster assignment agreement.
http://faculty.washington.edu/kayee/pca/supp.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | compare(
assignments$hierarchical_assignment,
assignments$kmeans_assignment,
assignments$skmeans_assignment,
assignments$nmf_assignment
)
## Understanding the ARI
set.seed(10)
w <- sample(1:10, 40, TRUE)
x <- 11-w
set.seed(20)
y <- sample(1:10, 40, TRUE)
set.seed(50)
z <- sample(1:10, 40, TRUE)
data.frame(w, x, y, z)
library(mclust)
mclust::adjustedRandIndex(w, x)
mclust::adjustedRandIndex(x, y)
mclust::adjustedRandIndex(x, z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.