source: orange/Orange/testing/regression/tests_20/modules_tuningm.py @ 9952:986e9cd806f4

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

Tests moved and renamed from orange 20.

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.