Skip to content

Instantly share code, notes, and snippets.

@bbarrilleaux
Created March 28, 2014 19:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbarrilleaux/9841297 to your computer and use it in GitHub Desktop.
Save bbarrilleaux/9841297 to your computer and use it in GitHub Desktop.
IPython notebook using scikit-learn for K-means clustering.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Debanjan1234
Copy link

Does k-means depends on the no of features? As in Iris dataset we have 4 features. Can I use this code for a dataset where I have 50 features ?

@D4T4R00T
Copy link

Yes, of course. You just have to refactor the feaatures, but it should work. Even though, I believe k-means is not the best approach to such quantity of features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment