8b7dd09d48237d4ecca57040e9aa44bd3d9a460a,tests/test_stats.py,StatsTests,testDatasetMeasureProb,#StatsTests#,55
Before Change
def testDatasetMeasureProb(self):
ds = normalFeatureDataset(perlabel=20, nlabels=2, nfeatures=4,
nonbogus_features=[1,3], snr=4, nchunks=1)
// to estimate null distribution
m = OneWayAnova(null_dist=MCNullDist(permutations=10, tail="right"))
score = m(ds)
// plausability check
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)
After Change
% null_prob_nonbogus)
// the others should be a lot larger
self.failUnless(N.mean(null_prob_bogus) > N.mean(null_prob_nonbogus))
def suite():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: PyMVPA/PyMVPA
Commit Name: 8b7dd09d48237d4ecca57040e9aa44bd3d9a460a
Time: 2008-06-30
Author: debian@onerussian.com
File Name: tests/test_stats.py
Class Name: StatsTests
Method Name: testDatasetMeasureProb
Project Name: PyMVPA/PyMVPA
Commit Name: f29abb521531fb3ac6176987a3c0c8a7655aa3b5
Time: 2007-10-25
Author: debian@onerussian.com
File Name: tests/maskmapper.py
Class Name: MaskMapperTests
Method Name: testMaskNeighborMapper
Project Name: PyMVPA/PyMVPA
Commit Name: 1f0b56c282ce7104d92fbf8b25a092b39a3182ba
Time: 2007-12-12
Author: debian@onerussian.com
File Name: tests/test_clf.py
Class Name: ClassifiersTests
Method Name: testDummy