diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-18 23:08:22 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-18 23:08:22 +0100 |
commit | c16fde7b346696c292724a471dad2715e615737c (patch) | |
tree | 8f8be3933a1eaa866b1814fefd4e5e03051ac100 /source | |
parent | Test with euclidian distance. (diff) | |
download | newspipe-c16fde7b346696c292724a471dad2715e615737c.tar.gz newspipe-c16fde7b346696c292724a471dad2715e615737c.tar.bz2 newspipe-c16fde7b346696c292724a471dad2715e615737c.zip |
Better results with Pearson.
Diffstat (limited to 'source')
-rw-r--r-- | source/testclusters.py | 2 |
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): |