source: orange/docs/reference/rst/code/optimization-tuningm.py @ 10077:aafe4468ce2d

Revision 10077:aafe4468ce2d, 451 bytes checked in by ales_erjavec, 2 years ago (diff)

Camel case parameters, attributes to underscore, fixes to the documentation.

Line 
1import Orange
2
3learner = Orange.classification.tree.TreeLearner()
4voting = Orange.data.Table("voting")
5tuner = Orange.optimization.TuneMParameters(learner=learner,
6             parameters=[("min_subset", [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.