Skip to content

Create K-Means Classification Class #1

@ZachDischner

Description

@ZachDischner

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions