ab7822fbe819f2b36b8cc1aec4bcf27cea446afd,tests/test_patterns.py,PatternTests,testCombinedPatternAndFeatureMasking,#PatternTests#,197

Before Change



        self.failUnless( data.npatterns == 4 )
        self.failUnless( data.nfeatures == 5 )
        data.setFeatureMask([1,2])
        data.setPatternMask([0,3])
        self.failUnless( data.npatterns == 2 )
        self.failUnless( data.nfeatures == 2 )

After Change



        self.failUnless( data.npatterns == 4 )
        self.failUnless( data.nfeatures == 5 )
        fsel = data.selectFeatures([1,2])
        fpsel = fsel.selectPatterns([0,3])
        self.failUnless( fpsel.npatterns == 2 )
        self.failUnless( fpsel.nfeatures == 2 )

        self.failUnless( (fpsel.pattern == [[1,2],[16,17]]).all() )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: ab7822fbe819f2b36b8cc1aec4bcf27cea446afd
Time: 2007-06-07
Author: michael.hanke@gmail.com
File Name: tests/test_patterns.py
Class Name: PatternTests
Method Name: testCombinedPatternAndFeatureMasking


Project Name: PyMVPA/PyMVPA
Commit Name: ab7822fbe819f2b36b8cc1aec4bcf27cea446afd
Time: 2007-06-07
Author: michael.hanke@gmail.com
File Name: tests/test_patterns.py
Class Name: PatternTests
Method Name: testOrigMaskExtraction


Project Name: PyMVPA/PyMVPA
Commit Name: ab7822fbe819f2b36b8cc1aec4bcf27cea446afd
Time: 2007-06-07
Author: michael.hanke@gmail.com
File Name: tests/test_knn.py
Class Name: KNNTests
Method Name: testMultivariate