From 7ee7b63ec0dbb926540a70b7f5938ec68a574bbb Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Wed, 16 Oct 2019 20:20:03 -0700 Subject: [PATCH] Update requirements to use https, and update code to use k_means instead of unweighted_k_means --- main.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1cd0c6d..81e593e 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,7 @@ import matplotlib.pyplot as plt from scipy.spatial import ConvexHull from scipy.spatial.qhull import QhullError -from kmeans.algorithms import unweighted_k_means +from kmeans.algorithms import k_means from kmeans.clustering.cluster import Cluster from kmeans.clustering.point import Point @@ -69,7 +69,7 @@ def main(): plt.plot(xs, ys, 'o') plt.show() - clusters = unweighted_k_means(points, 4, 0.001) + clusters = k_means(points, 4, 0.001) # Color clusters assigned_colors = plt.cm.gist_ncar(np.linspace(0, 1, 4)) diff --git a/requirements.txt b/requirements.txt index b912431..5211adc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,4 +25,4 @@ scipy==1.3.1 six==1.12.0 --e git+git://git.xchg.sh/angrygoats/kmeans.git@master#egg=kmeans +-e git+https://git.xchg.sh/angrygoats/kmeans.git@master#egg=kmeans