Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create K-Means Classification Class #1

Open
ZachDischner opened this issue Oct 16, 2016 · 0 comments
Open

Create K-Means Classification Class #1

ZachDischner opened this issue Oct 16, 2016 · 0 comments

Comments

@ZachDischner
Copy link
Owner

ZachDischner commented Oct 16, 2016

First issue, seeing if anybody bites. Easy one.

Create a class for K-Means classification that encapsulates the logic now exists in functions. Class would utilize the existing Centroid() class that already exists. Pretty simple.

Thoughts on usage

kc = KMeansClassifier(X,num_zones)
kc.train(max_iters=N, convergence_criteria=Jmin, random_inits=1)
kc.predict(x)

Also update projects/Smarty-kmeans.ipynb with usage examples.

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

No branches or pull requests

1 participant