Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ndanielsen authored Sep 17, 2017
1 parent 92e06ed commit 8acf8d1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ are not yet supported.
Use just like you would utilize the [scikit-learn Kmeans](http://scikit-learn.org/0.17/modules/generated/sklearn.cluster.KMeans.html#sklearn.cluster.KMeans) class

> from clustering.equal_groups import EqualGroupsKMeans
>
> import numpy as np
>
> X = np.array([[1, 2], [1, 4], [1, 0], [4, 2], [4, 4], [4, 0]])
> clf = EqualGroupsKMeans(n_clusters=2, random_state=0)
>
> clf = EqualGroupsKMeans(n_clusters=2)
>
> clf.fit(X)
>
> clf.labels_
>


Expand Down

0 comments on commit 8acf8d1

Please sign in to comment.