Description Usage Arguments References Examples
Provides a visualisation of the cluster means computed from the optidigits data set, recast as images. Cluster labels are aligned with the true labels using simulated annealing to maximise the trace of the confusion matrix (or subset if number of clusters != number of classes.)
1 | optidigits_mean_images(clusters)
|
clusters |
a vector of cluster assignments. Must take values in 1:k, where k is the number of clusters. |
Lichman, M. (2013) UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science. https://archive.ics.uci.edu/ml
1 2 3 4 5 6 7 8 9 10 11 12 | ### not run
run = FALSE
if(run){
## load optidigits dataset
data(optidigits)
## obtain a clustering solution using normalised cut hyperplanes
sol <- ncutdc(optidigits$x, 10)
## visualise the cluster means as images
optidigits_mean_images(sol$cluster)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.