source: orange/Orange/doc/modules/tuningm.py @ 9671:a7b056375472

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

Moved orange to Orange (part 2)

Line 
1import orange, orngTree, orngStat, orngWrap
2
3learner = orngTree.TreeLearner()
4data = orange.ExampleTable("voting")
5tuner = orngWrap.TuneMParameters(object=learner,
6                                 parameters=[("minSubset", [2, 5, 10, 20]),
7                                             ("measure", [orange.MeasureAttribute_gainRatio(), orange.MeasureAttribute_gini()])],
8                                 evaluate = orngStat.AUC)
9classifier = tuner(data)
Note: See TracBrowser for help on using the repository browser.