News for hackers. Stuff that matters.
Re:Introduction to K-Means Clustering by NicoJuicy on Monday March 14, 2022 @02:19PM (#30675995)
Do you have an example of the groups ( = output) and what you are using as variables for input ?

Eg. Wouldn't KNN be easier if you want to classify new groups later on? I'm probably missing something, but defining the groups upfront seems more labor intensive ( note: novice in this area )

Re:Introduction to K-Means Clustering by dilyevsky on Monday March 14, 2022 @03:07PM (#30676764)
Not tp but I’ve tried using k-means for similar task and and LDA and found LDA to be better. Particularly if your documents have mixture of topics
Re:Introduction to K-Means Clustering by jacquesm on Monday March 14, 2022 @03:17PM (#30676886)
Well, you don't so much define the groups up front as that you define the number of groups up front, the distance function is what will eventually result in the mapping of inputs to groups if you use the groups (for instance: sample texts in those groups) as a part of the scoring system.
Re:Introduction to K-Means Clustering by flashfaffe2 on Monday March 14, 2022 @05:47PM (#30678822)
Depending on the task but using K- means implies you have have idea of the clusters you might have ( unsupervised learning). KNN assumes the groups already exist.