source: orange/orange/doc/modules/thresholding1.py @ 2344:2f4651ee936c

Revision 2344:2f4651ee936c, 482 bytes checked in by janezd <janez.demsar@…>, 8 years ago (diff)

* empty log message *

Line 
1import orange, orngWrap, orngTest, orngStat
2
3data = orange.ExampleTable("bupa")
4
5learner = orange.BayesLearner()
6thresh = orngWrap.ThresholdLearner(learner = learner)
7thresh80 = orngWrap.ThresholdLearner_fixed(learner = learner, threshold = .8)
8res = orngTest.crossValidation([learner, thresh, thresh80], data)
9CAs = orngStat.CA(res)
10
11print "W/out threshold adjustement: %5.3f" % CAs[0]
12print "With adjusted thredhold: %5.3f" % CAs[1]
13print "With threshold at 0.80: %5.3f" % CAs[2]
Note: See TracBrowser for help on using the repository browser.