Skip to content

A super simple native implementation of K-Means for Grasshopper and Dynamo using python

License

Notifications You must be signed in to change notification settings

range-et/K-Means

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K Means for GH and Dynamo

These are some simplified implementations of K Means for grasshopper and Dynamo. The files included here are

  • Implementation as an illustrative example in python
  • Implementation in dynamo
  • Implementation in Grasshopper

For the sake of simplicity, a minimum number of external dependencies are used and almost all of the functionality (of the K means algorithm) is created using lists and native 'out of the box' functions in python.

Installation/Prerequisites

For visualization purposes, The following external packages are used

  • Numpy (to generate a list only, not for processing)
  • Matplotlib (For visualizing stuff)

Use the package manager pip to install packages.

pip install numpy
pip install matplotlib

Usage

Copy paste the code into GH or dynamo to run it PLEASE NOTE: That the node's input values must match the inputs in the code block in either GH or Dynamo

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A super simple native implementation of K-Means for Grasshopper and Dynamo using python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages