On Fri, Nov 11, 2011 at 10:32:07AM +1100, Robert Layton wrote:
>  On 11 November 2011 09:53, Emanuele Olivetti wrote:
> > is there a way to get the full dendrogram from the hierarchical
> > clustering (Ward)?

>  The `ward_tree` function in sklearn/cluster/hierarchical.py should give
>  you what you want.

To add to this, if you are using the Ward object, the tree can be found
using the `children_` attribute of the object, that gives the pair of
children for each node in the tree. In addition, the number of leaves and
may be useful when traversing the tree, as it gives the maximum node
index at which they are no children. It is found as the `n_leaves_`
attribute of the Ward object.

HTH,

Gael

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to