Assigns points to specific clusters using vectors found from clusterCentres
Assigns points to specific clusters using vectors found from clusterCentres
original data input
result of the run function
returns the cluster assignments
Specify the input data
Specify the input data
1. Splits the vectors into k dense vectors 2. Finds the Euclidean distance between the new center and the values on the graph 3. Assigns values with lowest distances to the clusters 4. Creates new dense vectors with the values found 5. Repeats till the number of iterations is met
Input an RDD[Vector]
Returns the cluster centers as a RDD[Vector]
A class to implement a Wide K-Means.
Specify the
k
anditerations
then access the fields like this: