source: orange/docs/reference/rst/code/statExample0.py @ 9945:ba7e22d4ebc5

Revision 9945:ba7e22d4ebc5, 444 bytes checked in by markotoplak, 2 years ago (diff)

Modernized some example scripts.

Line 
1import Orange
2
3learners = [ Orange.classification.bayes.NaiveLearner(name = "bayes"),
4             Orange.classification.tree.TreeLearner(name="tree"),
5             Orange.classification.majority.MajorityLearner(name="majrty")]
6
7voting = Orange.data.Table("voting")
8res = Orange.evaluation.testing.cross_validation(learners, voting)
9
10vehicle = Orange.data.Table("vehicle")
11resVeh = Orange.evaluation.testing.cross_validation(learners, vehicle)
Note: See TracBrowser for help on using the repository browser.