powered by
Comparison of two sets of clusters
compare(clus, gt, eval = "accuracy", comp = c("max", "pairwise", "cluster"))
The extracted clusters.
The real clusters.
The evluation criterion.
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.accuracy, compare.jaccard, compare.kappa, intern, stability
compare.accuracy
compare.jaccard
compare.kappa
intern
stability
# NOT RUN { require (datasets) data (iris) km = KMEANS (iris [, -5], k = 3) compare (km$cluster, iris [, 5]) compare (km$cluster, iris [, 5], eval = c ("accuracy", "kappa"), comp = "pairwise") # }
Run the code above in your browser using DataLab