diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-12-05 21:38:32 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-12-05 21:38:32 +0100 |
commit | af21a33f233eccac6416062a6a0095631f102b36 (patch) | |
tree | 4b38dfae789e0a58c914a632c70c6e1b227492d5 /source/testclusters.py | |
parent | Updated comments. (diff) | |
download | newspipe-af21a33f233eccac6416062a6a0095631f102b36.tar.gz newspipe-af21a33f233eccac6416062a6a0095631f102b36.tar.bz2 newspipe-af21a33f233eccac6416062a6a0095631f102b36.zip |
Removed files related to k-means sorting tests.
Diffstat (limited to 'source/testclusters.py')
-rw-r--r-- | source/testclusters.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source/testclusters.py b/source/testclusters.py deleted file mode 100644 index 728e9c1b..00000000 --- a/source/testclusters.py +++ /dev/null @@ -1,24 +0,0 @@ -#! /usr/bin/env python -#-*- coding: utf-8 -*- - -import clusters - -K = 7 - -blognames,words,data = clusters.readfile("blogdata1.txt") - -coords = clusters.scaledown(data) - -print "Generating clusters..." -kclust = clusters.kcluster(data, k=K, distance=clusters.pearson) -print -print "Clusters:" -for i in range(K): - print "Cluster" + str(i) - print ", ".join([blognames[r] for r in kclust[i]]) - print - - - - -clusters.draw2d(coords,blognames,jpeg='mds2d.jpg') |