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