source: orange/orange/doc/modules/hclust-dendrogram.py @ 7736:4c23fb69df86

Revision 7736:4c23fb69df86, 310 bytes checked in by ales_erjavec <ales.erjavec@…>, 3 years ago (diff)

Added a missing hclust-dendrogram.py script referenced from orngClustering.htm.

Line 
1import orange
2import orngClustering
3
4data = orange.ExampleTable("iris")
5sample = data.selectref(orange.MakeRandomIndices2(data, 20), 0)
6root = orngClustering.hierarchicalClustering(sample)
7orngClustering.dendrogram_draw("hclust-dendrogram.png", root, data=sample, labels=[str(d.getclass()) for d in sample]) 
8
Note: See TracBrowser for help on using the repository browser.