Skip to content

Instantly share code, notes, and snippets.

View ThomasGsp's full-sized avatar

Thomas.GSP ThomasGsp

View GitHub Profile
@ThomasGsp
ThomasGsp / kmeansExample.py
Created March 14, 2017 13:31 — forked from iandanforth/kmeansExample.py
A pure python implementation of K-Means clustering. Optional cluster visualization using plot.ly.
#############################################################################
# Full Imports
import math
import random
"""
This is a pure Python implementation of the K-Means Clustering algorithmn. The
original can be found here:
http://pandoricweb.tumblr.com/post/8646701677/python-implementation-of-the-k-means-clustering