Skip to content

Instantly share code, notes, and snippets.

@spikar
spikar / kmeans_update.py
Last active October 1, 2020 16:12
k-means python code with update functionality
import matplotlib.pyplot as plt
from matplotlib import style
style.use('ggplot')
import numpy as np
colors = 10 * ["g", "r", "c", "b", "k"]
class K_Means: