Trains a k-means model using specified parameters and the default values for unspecified.
Trains a k-means model using specified parameters and the default values for unspecified.
Trains a k-means model using the given set of parameters.
Trains a k-means model using the given set of parameters.
training points stored as RDD[Array[Double]]
number of clusters
max number of iterations
number of parallel runs, defaults to 1. The best model is returned.
initialization model, either "random" or "k-means||" (default).
Top-level methods for calling K-means clustering.