Init the model based on the algorithm implemented in the learner, from the stream of instances given for training.
Init the model based on the algorithm implemented in the learner, from the stream of instances given for training.
an Array of Example containing the instances to be clustered
the number of clusters (default 10)
the number of loops of k-means (default 1000)
The KMeans object computes the weighted k-means clustering given an array of Examples. It assumes that the inputs are weighted. Each instance will contribute a weight number of instances to the cluster.