kmeans_iterations | R Documentation |
Generate intermediate iterations when performing K-means
kmeans_iterations( df, centers = 3, tolerance = 1e-05, max_iterations = 15, verbose = FALSE )
df |
A object from |
centers |
How many clusters. |
tolerance |
A value to indicating early stop. |
max_iterations |
Max iterations to calculate. |
verbose |
A logical value, to show or not iterations messages. |
set.seed(12) df <- sim_groups(n = 200, groups = 3) plot(df) set.seed(124) kmi <- kmeans_iterations(df, centers = 4, max_iterations = 6) plot(kmi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.