Git Product home page Git Product logo

kmeans-clusterer's People

Contributors

gbuesing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kmeans-clusterer's Issues

Changing what gets maximized in the kmeans algorithm

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 of points that would fit within a cluster to a constant value, and then allow the number of clusters that would be needed to cover all the points to vary.

explain data relationship in the README example

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']

Error: #<Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Hello, I am a Sketchup developer. When I run the code in ruby console in Sketchup "Gem::install("kmeans-clusterer") ", then
"Error: #<Gem::Ext::BuildError: ERROR: Failed to build gem native extension." "C:/Users/honor/AppData/Roaming/SketchUp/SketchUp 2020/SketchUp/Gems64/gems/narray-0.6.1.2/src
"C:/Program Files/SketchUp/SketchUp 2020/Tools/bin/ruby.exe" -r ./siteconf20210326-8616-1oyyja0.rb extconf.rb
extconf failed, exit code 1". I've run it successfully in cmd (Windows OS) Can you reply me? Thx
image

headlines.rb

~/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 `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.