View source: R/kmeans_diagnostics.R
within_cluster_sse | R Documentation |
Calculates Sum of Squared Error in each cluster
within_cluster_sse(object, ...)
object |
a fitted kmeans celery model |
... |
Other arguments passed to methods. |
A tibble with two columns, the cluster name and the SSE within that cluster.
kmeans_spec <- k_means(k = 5) %>% set_engine_celery("stats") kmeans_fit <- fit(kmeans_spec, ~., mtcars) kmeans_fit %>% within_cluster_sse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.