Description Usage Format Usage Methods Arguments Examples
Trains a unsupervised K-Means clustering algorithm. It borrows mini-batch k-means function from ClusterR package written in c++, hence it is quite fast.
1 |
R6Class
object.
For usage details see Methods, Arguments and Examples sections.
1 2 3 4 5 6 |
$new()
Initialises an instance of k-means model
$fit()
fit model to an input train data
$predict()
returns cluster predictions for each row of given data
for explanation on parameters, please refer to the documentation of MiniBatchKMeans function in clusterR package https://CRAN.R-project.org/package=ClusterR
Used to find the optimal number of cluster during fit
method. To use this, make sure the value for max_clusters > 0.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.