powered by
S3 method to get fitted model summary info depending on engine
extract_fit_summary(object, ...)
A list with various summary elements
a fitted cluster_spec object
cluster_spec
other arguments passed to methods
The elements cluster_names and cluster_assignments will be factors.
cluster_names
cluster_assignments
kmeans_spec <- k_means(num_clusters = 5) %>% set_engine("stats") kmeans_fit <- fit(kmeans_spec, ~., mtcars) kmeans_fit %>% extract_fit_summary()
Run the code above in your browser using DataLab