Skip to content

Instantly share code, notes, and snippets.

View pshubham95's full-sized avatar

Shubham Patil pshubham95

View GitHub Profile
@pshubham95
pshubham95 / kmeansExample.py
Last active October 17, 2015 12:28 — forked from iandanforth/kmeansExample.py
A pure python implementation of K-Means clustering. Optional cluster visualization using plot.ly.
#############################################################################
# Full Imports
import sys
import math
import random
import subprocess
"""
This is a pure Python implementation of the K-Means Clustering algorithmn. The