hi Denis, have a look at:
http://www2.eng.cam.ac.uk/~dre25/iris.html for a pure scipy demo and the test to see how sklearn and scipy agree: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/cluster/tests/test_hierarchical.py#L131 HTH Alex On Tue, Nov 27, 2012 at 12:13 PM, Denis <[email protected]> wrote: > Hi everyone, > > I'm trying to use sklearn hierarchical clustering and need to get a tree > that it has built rather than just clusters' labels. Do you have any idea on > how to do that? > > "Wald" object used for hierarchical clustering has "childrens_" property but > it's not clear how to get a tree out of that list of children. > > PS. > Basically, I'm trying to use hierarchical clustering tree to sort input > variables in my problem so that correlated variables reside close to each > other in the sorted list and then correlation matrix of these variables > looks more interpretable when you display it compared to if you use random > order of variables. > > Thanks and regards, > Denis. > > > > > Sent from Samsung tablet > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Scikit-learn-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general > ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
