Jon's Tech Blog

contents = [code, data, ml, curiosity]

2015-09-13

k-means clustering implemented in Python

The latest addition in my quest to implement common machine learning algorithms in Python is a simple implementation of the k-means unsupervised learning algorithm. It is a straightforward implementation using numpy arrays that we test on some data generated with scikit-learn. This algorithm is a popular and simple way to detect clusters within your data set, but it is not without it's limitations. I'll explore that in another post to come!

As usual, you can find the jupyter notebook in my ml-python repo if you'd like to follow along, or rendered in HTML here:

k-means implemented in Python

All views expressed on this site are my own and do not represent the opinions of any entity whatsoever with which I have been, am now, or will be affiliated.

© Jon Charest, 2018