Predict k-means clustering; provide labels for all observations. Returns data frame containing new data and clustering label for each data point
predict(data, centroids)
data
Data frame. Attributes as columns and data points as rows. Data without cluster labels
centroids
Data frame containing centroids
predict(test_data, tibble(c(1,2), c(2,3)))
This package implements the classical unsupervised clustering method, k-means, with options for choosing the initial centroids (e.g. random and kmeans++). Users will be able to find clusters in their data, label new data, and observe the clustering results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.