Ruby K-means implementation which can be easily adjusted to X-means

https://news.ycombinator.com/item?id=11972180
by wlrm • 10 years ago
3 0 10 years ago

Actually there is a problem to find X-means on Ruby. This library is awesome because can be adjusted easily. You can redefine calcAverage, calcSum, calcDistanceSquared functions for your needs.

https://github.com/vaneyckt/kmeans-clustering/blob/master/example.rb

Related Stories

Loading related stories...

Source preview

news.ycombinator.com