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

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

Tests moved and renamed from orange 20.

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.