kmeans-clusterer
kmeans-clusterer copied to clipboard
k-means clustering in Ruby
What would be the route whereby I can adjust the algorithm in this library? specifically, i'd like to fix the cluster radius to a given value, set the the number...
Hello, I am a Sketchup developer. When I run the code in ruby console in Sketchup "Gem::install("kmeans-clusterer") ", then "Error: #
How to store kmeans model for further usage in another part of code?
Can you explain how the data relate to the labels? I'm referring to this: data = [[40.71,-74.01],[34.05,-118.24],[39.29,-76.61], [45.52,-122.68],[38.9,-77.04],[36.11,-115.17]] labels = ['New York', 'Los Angeles', 'Baltimore', 'Portland', 'Washington DC', 'Las Vegas']
The title says all about the issue, I am using the gem in a Rails app and want to store the model into a database for later user, how can...
```ruby ~/Desktop/kmeans-clusterer-master/examples$ ruby headlines.rb -k 16 Classifying 0 docs with 0 unique terms into 16 clusters: /home/arjun/Desktop/kmeans-clusterer-master/examples/utils/bag.rb:67:in `new': array.dim(=0) < CLASS_DIMENSION(=2) (TypeError) from /home/arjun/Desktop/kmeans-clusterer-master/examples/utils/bag.rb:67:in `to_matrix' from headlines.rb:42:in `' ```