Skip to content

mathisve/KMeans-Clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KMeans-Clustering 🌌

Very simple and easy to use vectorized KMeans clustering algorithm from scratch in Python. Now supports more than 2 dimensions!

Ease of use: 🎉

kmeans = KMeans(n_clusters=4, data=x)
kmeans.fit(epochs=100, steps=0.1)
pred = kmeans.predict([-2, 3])
print(kmeans.colors[pred])

Resuts: 📈

K = 2

gif1

K = 4

gif2

About

KMeans clustering from scratch in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published