aboutsummaryrefslogtreecommitdiff
path: root/source/testclusters.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/testclusters.py')
-rw-r--r--source/testclusters.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/testclusters.py b/source/testclusters.py
index 0e1e2a32..ea6406b1 100644
--- a/source/testclusters.py
+++ b/source/testclusters.py
@@ -2,11 +2,11 @@
import clusters
-K = 10
+K = 8
-blognames,labels,data = clusters.readfile("blogdata1.txt")
+blognames,words,data = clusters.readfile("blogdata1.txt")
-#coords = clusters.scaledown(data)
+coords = clusters.scaledown(data)
print "Generating clusters..."
kclust = clusters.kcluster(data, k=K)
@@ -20,4 +20,4 @@ for i in range(K):
-#clusters.draw2d(coords,blognames,jpeg='mds2d.jpg') \ No newline at end of file
+clusters.draw2d(coords,blognames,jpeg='mds2d.jpg') \ No newline at end of file
bgstack15