powered by
Comparison of two sets of clusters, using accuracy
compare.accuracy(clus, gt, comp = c("max", "pairwise", "cluster"))
The extracted clusters.
The real clusters.
Indicates whether a "max" or a "pairwise" evaluation should be used, or the evaluation for each individual "cluster".
A numeric value indicating how much the two sets of clusters are similar.
compare.jaccard, compare.kappa, compare
compare.jaccard
compare.kappa
compare
# NOT RUN { require (datasets) data (iris) km = KMEANS (iris [, -5], k = 3) compare.accuracy (km$cluster, iris [, 5]) # }
Run the code above in your browser using DataLab