source: orange/Orange/doc/modules/thresholding1.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 482 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.