source: orange/Orange/testing/regression/tests_20/modules_thresholding1.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 482 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.