sse_ratio: Compute the ratio of the WSS to the total SSE

View source: R/kmeans_diagnostics.R

sse_ratioR Documentation

Compute the ratio of the WSS to the total SSE

Description

Compute the ratio of the WSS to the total SSE

Usage

sse_ratio(object, ...)

Arguments

object

An cluster_spec object.

...

Other arguments passed to methods.

Examples

kmeans_spec <- k_means(k = 5) %>%
  set_engine_celery("stats")

kmeans_fit <- fit(kmeans_spec, ~., mtcars)

kmeans_fit %>%
  sse_ratio()

kbodwin/celery documentation built on March 26, 2022, 12:33 a.m.