aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-11-18 23:08:22 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-11-18 23:08:22 +0100
commitc16fde7b346696c292724a471dad2715e615737c (patch)
tree8f8be3933a1eaa866b1814fefd4e5e03051ac100 /source
parentTest with euclidian distance. (diff)
downloadnewspipe-c16fde7b346696c292724a471dad2715e615737c.tar.gz
newspipe-c16fde7b346696c292724a471dad2715e615737c.tar.bz2
newspipe-c16fde7b346696c292724a471dad2715e615737c.zip
Better results with Pearson.
Diffstat (limited to 'source')
-rw-r--r--source/testclusters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/testclusters.py b/source/testclusters.py
index 6feabfc8..728e9c1b 100644
--- a/source/testclusters.py
+++ b/source/testclusters.py
@@ -10,7 +10,7 @@ blognames,words,data = clusters.readfile("blogdata1.txt")
coords = clusters.scaledown(data)
print "Generating clusters..."
-kclust = clusters.kcluster(data, k=K, distance=clusters.euclidian)
+kclust = clusters.kcluster(data, k=K, distance=clusters.pearson)
print
print "Clusters:"
for i in range(K):
bgstack15