Clustering



In the example below, we generate a random set of points. When you click run, a set of four centroids are generated and placed on the chart. Each click of run prompts the clustering algorithm to run another iteration, where you can see the centroids migrating. When the algorithm settles down, you should roughly see the four points in the centers of the four quadrants.




Or you can try the k-means code in a code editor

Try it!

Contents