Python Cluster
subhabangalore at gmail.com
subhabangalore at gmail.com
Tue Dec 4 14:04:15 EST 2012
Dear Group,
I am trying to use the cluster module as,
>>> from cluster import *
>>> data = [12,34,23,32,46,96,13]
>>> cl = HierarchicalClustering(data, lambda x,y: abs(x-y))
>>> cl.getlevel(10)
[[96], [46], [12, 13, 23, 34, 32]]
>>> cl.getlevel(5)
[[96], [46], [12, 13], [23], [34, 32]]
but now I want to visualize it if any one suggest how may I use visualization(like matplotlib or pyplot etc.) to see the data?
Thanking in advance,
Regards,
Subhabrata.
More information about the Python-list
mailing list