source: orange/docs/reference/rst/code/optimization-tuningm.py @ 9823:7f9c3f3c6474

Revision 9823:7f9c3f3c6474, 460 bytes checked in by lanumek, 2 years ago (diff)

Changed names of data sets (table replaced with data or name of the data set).

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.core.MeasureAttribute_gainRatio(), 
8                                      Orange.core.MeasureAttribute_gini()])],
9             evaluate = Orange.evaluation.scoring.AUC)
10
11classifier = tuner(voting)
Note: See TracBrowser for help on using the repository browser.