DEV Community

Ashwani Kumar Shamlodhiya
Ashwani Kumar Shamlodhiya

Posted on

Unsupervised machine learning: Kmeans (3 blobs)

1) Here I create 3 clusters using python library make_blobs. This creates data points with labels
2) Then I find these clusters using kmeans algorithm. I use The elbow method to find the right number of clusters
3) I compare the clusters with actuals labels. Kmeans clustering is able to find the clusters that make_blobs created

Code available here

Top comments (0)