tot_wss: Compute the sum of within-cluster SSE

View source: R/kmeans_diagnostics.R

tot_wssR Documentation

Compute the sum of within-cluster SSE

Description

Compute the sum of within-cluster SSE

Usage

tot_wss(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 %>%
  tot_wss()

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