source: orange/docs/reference/rst/code/ @ 10171:94f7d4a7208d

Revision 10171:94f7d4a7208d, 450 bytes checked in by janezd <janez.demsar@…>, 2 years ago (diff)

Cleaned up feature selection module and doc; not finished yet

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.best_n(ma, n)
13print 'Best %d features:' % n
14for s in best:
15    print s
Note: See TracBrowser for help on using the repository browser.