Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
k-means should allow selecting points randomly as initialization #596
This requires a bit of refactoring because the current initialization policy operates by setting the assignments of each point, instead of the location of each centroid. So there will need to be a little bit of thought on how exactly to handle this, but probably some template metaprogramming to handle both cases is in order here (so that a user can both write initialization policies that give initial point assignments and also initial centroids).
I will do this as I have time.