source: orange/orange/doc/modules/imputation.py @ 2358:ee5636193016

Revision 2358:ee5636193016, 370 bytes checked in by janezd <janez.demsar@…>, 8 years ago (diff)

* empty log message *

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.