News for hackers. Stuff that matters.
Re:Introduction to K-Means Clustering by CuriouslyC on Monday March 14, 2022 @03:45PM (#30677248)
A bigger problem with kmeans than figuring out the number of clusters is the fact that the model assumes multivariate gaussian spheres. That's a bad model for most non-toy data.
Re:Introduction to K-Means Clustering by thesz on Tuesday March 15, 2022 @01:48PM (#30688483)
It is not necessarily the case.

For example, word2vec uses k-means clustering using cosine similarity measure [1]. It works very, very well. The caveat is not many optimization variations of k-means will work with that "distance".

[1] https://github.com/tmikolov/word2vec/blob/master/word2vec.c#...

Re:Introduction to K-Means Clustering by dorgo on Tuesday March 15, 2022 @06:18PM (#30692644)
My feeling is that if for a given problem "cluster center" is a meaningful concept then k-means is the right tool. The concept of "distance" can be adjusted as well. I think any metric will do. But if you want clusters without a "center of mass" then you are faced with a whole other problem and need other tools.
Re:Introduction to K-Means Clustering by Royi on Monday March 14, 2022 @04:23PM (#30677773)
Not only limited to Gaussian Spheres but also being isotropic (Unless data is pre processed or distance is defined by Mahalanobis Distance).
Re:Introduction to K-Means Clustering by jacquesm on Monday March 14, 2022 @03:54PM (#30677371)
Can you explain this please?
Re:Introduction to K-Means Clustering by CuriouslyC on Monday March 14, 2022 @10:41PM (#30681151)
The model underlying k-means is that all the data is distributed into k hyperspheres. In the simple 2D case, that means drawing k circles around your data points in a X/Y plot such that the inter-group variance is minimized. This is bad because in the real world, data is typically grouped in an elliptical or irregular way.

There are some examples of this at https://stats.stackexchange.com/questions/133656/how-to-unde...

Re:Introduction to K-Means Clustering by jacquesm on Tuesday March 15, 2022 @04:11PM (#30690876)
Thank you!