View source: R/unsupervised-hclust.R
| optimal_hclust_k | R Documentation |
Use silhouette or gap statistic to find optimal k
optimal_hclust_k(hclust_obj, method = "silhouette", max_k = 10)
hclust_obj |
A tidy_hclust object |
method |
Character; "silhouette" (default) or "gap" |
max_k |
Maximum number of clusters to test (default: 10) |
A list with optimal k and evaluation results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.