source: orange/docs/reference/rst/code/optimization-tuningm.py @ 9946:96ed77f7d97f

Revision 9946:96ed77f7d97f, 449 bytes checked in by markotoplak, 2 years ago (diff)

Updated examples (remove Orange.core).

Line 
1import Orange
2
3learner = Orange.classification.tree.TreeLearner()
4voting = Orange.data.Table("voting")
5tuner = Orange.optimization.TuneMParameters(object=learner,
6             parameters=[("minSubset", [2, 5, 10, 20]),
7                         ("measure", [Orange.feature.scoring.GainRatio(), 
8                                      Orange.feature.scoring.Gini()])],
9             evaluate = Orange.evaluation.scoring.AUC)
10
11classifier = tuner(voting)
Note: See TracBrowser for help on using the repository browser.