within_cluster_sse: Calculates Sum of Squared Error in each cluster

View source: R/kmeans_diagnostics.R

within_cluster_sseR Documentation

Calculates Sum of Squared Error in each cluster

Description

Calculates Sum of Squared Error in each cluster

Usage

within_cluster_sse(object, ...)

Arguments

object

a fitted kmeans celery model

...

Other arguments passed to methods.

Value

A tibble with two columns, the cluster name and the SSE within that cluster.

Examples

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

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

kmeans_fit %>%
  within_cluster_sse()


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