source: orange/docs/tutorial/rst/code/classification-cv.py @ 11052:c22077a09e63

Revision 11052:c22077a09e63, 299 bytes checked in by blaz <blaz.zupan@…>, 16 months ago (diff)

new tutorial

Line 
1import Orange
2
3data = Orange.data.Table("voting")
4bayes = Orange.classification.bayes.NaiveLearner()
5res = Orange.evaluation.testing.cross_validation([bayes], data, folds=5)
6print "Accuracy: %.2f" % Orange.evaluation.scoring.CA(res)[0]
7print "AUC:      %.2f" % Orange.evaluation.scoring.AUC(res)[0]
Note: See TracBrowser for help on using the repository browser.