K-means from scratch with NumPy

Back to basics with this quick & simple clustering algorithm

Alexander Bailey
Towards Data Science
5 min readJun 29, 2020

--

Photo from unsplash

K-means is the simplest clustering algorithm out there. It’s easy to understand and to implement, making it a great starting point when trying to understand the world of unsupervised learning.

Unsupervised learning refers to the whole sub-domain of machine learning where the data…

--

--