source: orange/docs/reference/rst/code/optimization-tuningm.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 456 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

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