source: orange/Orange/testing/regression/tests_20/modules_hclust-dendrogram.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 310 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.