Skip to content

Instantly share code, notes, and snippets.

View sharoseali's full-sized avatar

Sharose sharoseali

View GitHub Profile
@iandanforth
iandanforth / kmeansExample.py
Last active October 5, 2023 12:35
A pure python implementation of K-Means clustering. Optional cluster visualization using plot.ly.
#############################################################################
# Full Imports
from __future__ import division
import math
import random
"""
This is a pure Python implementation of the K-means Clustering algorithmn. The
original can be found here: