self.failUnless(score[0] + score[2] < score[1] + score[3])
// feature 1 and 3 should have a very unlikely value
self.failUnless(m.null_prob[1] < 0.05)
self.failUnless(m.null_prob[3] < 0.05)
// the others should be a lot larger
self.failUnless(m.null_prob[0] + m.null_prob[2] \
After Change
def testDatasetMeasureProb(self):
ds = datasets["uni2medium"]
// to estimate null distribution
m = OneWayAnova(null_dist=MCNullDist(permutations=10, tail="right"))