source: orange/docs/reference/rst/code/statExamplesGraphRanks.py @ 9945:ba7e22d4ebc5

Revision 9945:ba7e22d4ebc5, 299 bytes checked in by markotoplak, 2 years ago (diff)

Modernized some example scripts.

Line 
1import Orange
2
3names = ["first", "third", "second", "fourth" ]
4avranks =  [1.9, 3.2, 2.8, 3.3 ] 
5cd = Orange.evaluation.scoring.compute_CD(avranks, 30) #tested on 30 datasets
6Orange.evaluation.scoring.graph_ranks("statExamples-graph_ranks1.png", avranks, names, \
7    cd=cd, width=6, textspace=1.5)
Note: See TracBrowser for help on using the repository browser.