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

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

Moved orange to Orange (part 2)

Line 
1import orange, orngImpute, orngTest, orngStat
2
3data = orange.ExampleTable("voting")
4ba = orange.BayesLearner()
5imba = orngImpute.ImputeLearner(baseLearner = ba, imputerConstructor=orange.ImputerConstructor_minimal)
6res = orngTest.crossValidation([ba, imba], data)
7CAs = orngStat.CA(res)
8
9print "Without imputation: %5.3f" % CAs[0]
10print "With imputation: %5.3f" % CAs[1]
Note: See TracBrowser for help on using the repository browser.