4 ms·
The equations look fine to me - I was a math major in college. Honestly, I get so tired of humanities people -- or programmers, bragging about how much they ha
by mrcactu5 13y ago
The equations look fine to me - I was a math major in college. Honestly, I get so tired of humanities people -- or programmers, bragging about how much they hate math.
Except:
https://gist.github.com/benmcredmond/0dec520b6ab2ce7c59d5#file-kmeans-rb https://gist.github.com/benmcredmond/0dec520b6ab2ce7c59d5#fi...
I didn't know k-means clustering was that simple. I am taking notes...
* pick two centers at random
run 15 times:
* for each post, find the closest center
* take the average point of your two clusters
as your new center
This is cool. It is 2-means clustering and we can extend it to 5 or 13...
We don't need any more math, as long as we don't ask whether this algorithm converges or how quickly