source: orange/docs/reference/rst/code/ @ 9644:39d76a0f807e

Revision 9644:39d76a0f807e, 453 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

To Orange25.

1# Description: Ranking and selection of best N attributes
2# Category:    feature selection
3# Uses:        voting
4# Referenced:  Orange.feature.html#selection
5# Classes:     Orange.feature.scoring.score_all, Orange.feature.selection.bestNAtts
7import Orange
8voting ="voting")
10n = 3
11ma = Orange.feature.scoring.score_all(voting)
12best = Orange.feature.selection.bestNAtts(ma, n)
13print 'Best %d features:' % n
14for s in best:
15    print s
Note: See TracBrowser for help on using the repository browser.