View source: R/kmeans_diagnostics.R
sse_ratio | R Documentation |
Compute the ratio of the WSS to the total SSE
sse_ratio(object, ...)
object |
An cluster_spec object. |
... |
Other arguments passed to methods. |
kmeans_spec <- k_means(k = 5) %>% set_engine_celery("stats") kmeans_fit <- fit(kmeans_spec, ~., mtcars) kmeans_fit %>% sse_ratio()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.