K Means Clustering in pictures


  1. Randomly pick K number of clusters and K number of centroids.

  2. For each point, calculate the distance between centroids and place the point in the cluster whose centroid is closest.

  3. After all points are assigned, find the centroids again (sum of x / total K , sum y / total K)


#data-science #kmeans #machine-learning

K Means Clustering in pictures