source: orange/Orange/doc/modules/hclust-dendrogram.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 310 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.