.calculateSilhouetteWidth | R Documentation |
The silhouette value is a measure of how similar an object is to its own cluster (cohesion) compared to other clusters (separation). The silhouette width ranges from -1 to +1, where a high value indicates that the object is well matched to its own cluster and poorly matched to neighboring clusters.
.calculateSilhouetteWidth(dat, kmeansRes)
dat |
A matrix with all the top PCs from training data to be clustered. |
kmeansRes |
Output from |
Silhouette-class object, which is an n x 3 matrix with attributes.
kmeans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.