From 1373f456fb10e583d8ff2aae0a56b4346b04bef0 Mon Sep 17 00:00:00 2001 From: thor-harsh <105957576+thor-harsh@users.noreply.github.com> Date: Sat, 23 Sep 2023 00:02:08 +0530 Subject: [PATCH] Update Readme.md --- KMeans/Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KMeans/Readme.md b/KMeans/Readme.md index b11cc25..a756e31 100644 --- a/KMeans/Readme.md +++ b/KMeans/Readme.md @@ -15,8 +15,9 @@ import cPickle from kmeans import KMeans,biKMeans X,y = cPickle.load(open('data.pkl','r')) -clf = KMeans(n_clusters=10,initCent='random',max_iter=200) -#clf = KMeans(n_clusters=10,initCent=X[0:10],max_iter=200) +#max_iter=100 will remove the warnings no need to write max_iter=100 +clf = KMeans(n_clusters=10,initCent='random',max_iter=100) +#clf = KMeans(n_clusters=10,initCent=X[0:10],max_iter=100) #clf = biKMeans(n_clusters=10) clf.fit(X) clf.predict(X)