I needed some algorithm for clustering multidimensional vectors in Python, so I remembered that I once implemented the Linde-Buzo-Gray aka Generalized Lloyd algorithm (for better explanation see this website) in Java and since it does the job well, I decided to implement it in Python. I put the result on github along with a small IPython notebook with which you can visualize the results of the clustering process – the red dots are the detected clusters of the input data (blue crosses):
Python implementation of Linde-Buzo-Gray algorithm
If you spotted a mistake or want to comment on this post, please contact me:
post -at- mkonrad -dot- net
.