diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-18 17:31:21 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-18 17:31:21 +0100 |
commit | 0d59de5f07abde759b86fd1f587dda0ddea0a029 (patch) | |
tree | fb4f3daeb8477ff1a826a0a5c4bb21f04b14105e /source/testclusters.py | |
parent | Test draw function. Set K to 8. (diff) | |
download | newspipe-0d59de5f07abde759b86fd1f587dda0ddea0a029.tar.gz newspipe-0d59de5f07abde759b86fd1f587dda0ddea0a029.tar.bz2 newspipe-0d59de5f07abde759b86fd1f587dda0ddea0a029.zip |
Test with tanimoto distance.
Diffstat (limited to 'source/testclusters.py')
-rw-r--r-- | source/testclusters.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/testclusters.py b/source/testclusters.py index ea6406b1..a16d3492 100644 --- a/source/testclusters.py +++ b/source/testclusters.py @@ -2,14 +2,14 @@ import clusters -K = 8 +K = 7 blognames,words,data = clusters.readfile("blogdata1.txt") coords = clusters.scaledown(data) print "Generating clusters..." -kclust = clusters.kcluster(data, k=K) +kclust = clusters.kcluster(data, k=K, distance=clusters.pearson) print print "Clusters:" for i in range(K): |