Data Science, Machine Learning, Programming, Data Analysis, K Means Clustering.
considered, the centre shifts a bit to the outliers. Original image. How to solve this issue? Remember that outliers contribute disproportionately to the update step. You can spot outliers by plotting the density of centroid-to-points distances. In the above example, the distribution of distances