View source: R/unsupervised-validation.R
| tidy_silhouette | R Documentation |
Compute silhouette statistics for cluster validation
tidy_silhouette(clusters, dist_mat)
clusters |
Vector of cluster assignments |
dist_mat |
Distance matrix (dist object) |
A list of class "tidy_silhouette" containing:
silhouette_data: tibble with silhouette values for each observation
avg_width: average silhouette width
cluster_avg: average silhouette width by cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.