Re: Python Cluster

2012-12-04 Thread subhabangalore
On Wednesday, December 5, 2012 2:33:56 AM UTC+5:30, Miki Tebeka wrote: > On Tuesday, December 4, 2012 11:04:15 AM UTC-8, subhaba...@gmail.com wrote: > > > >>> cl = HierarchicalClustering(data, lambda x,y: abs(x-y)) > > > but now I want to visualize it if any one suggest how may I use > > visuali

Re: Python Cluster

2012-12-04 Thread Miki Tebeka
On Tuesday, December 4, 2012 11:04:15 AM UTC-8, subhaba...@gmail.com wrote: > >>> cl = HierarchicalClustering(data, lambda x,y: abs(x-y)) > 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? One option is to use a scatte

Re: Python Cluster

2012-12-04 Thread Ian Kelly
On Tue, Dec 4, 2012 at 12:04 PM, wrote: > 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.get

Re: Python Cluster

2012-12-04 Thread Dave Angel
On 12/04/2012 02:04 PM, subhabangal...@gmail.com wrote: > Dear Group, > > I am trying to use the cluster module as, from cluster import * No such module in the stdlib. Start by showing what OS, what Python version, and what external libraries you've installed and are using, and only then can

Python Cluster

2012-12-04 Thread subhabangalore
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