Machine Learning, Clustering, Data Science, Unsupervised Learning, Towards Data Science.
of all the cluster centers. Recalculate the new cluster center using: where, ‘ci’ represents the number of data points in ith cluster. Recalculate the distance between each data point and new obtained cluster centers. If no data point was reassigned then stop, otherwise repeat from step 3).