3f06f3e19b5cd4c2775b05e348ab947f6e59d93d,mvpa/tests/test_searchlight.py,SearchlightTests,test_partial_searchlight_with_full_report,#SearchlightTests#,102

Before Change


        results = sl(self.dataset)

        // only two spheres but error for all CV-folds
        self.failUnlessEqual(results.shape, (len(self.dataset.UC), 2))

        // test if we graciously puke if center_ids are out of bounds
        dataset0 = self.dataset[:, :50] // so we have no 50th feature
        self.failUnlessRaises(IndexError, sl, dataset0)

After Change


        // dataset itself
        sls = (sphere_searchlight(cv, radius=0, center_ids=[3,50]),
               sphere_searchlight(cv, radius=0, center_ids="center_ids"))
        for sl in sls:
            // run searchlight
            results = sl(ds)
            // only two spheres but error for all CV-folds
            self.failUnlessEqual(results.shape, (len(self.dataset.UC), 2))
        // test if we graciously puke if center_ids are out of bounds
        dataset0 = ds[:, :50] // so we have no 50th feature
        self.failUnlessRaises(IndexError, sls[0], dataset0)
        // but it should be fine on the one that gets the ids from the dataset
        // itself
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 3f06f3e19b5cd4c2775b05e348ab947f6e59d93d
Time: 2011-03-24
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_searchlight.py
Class Name: SearchlightTests
Method Name: test_partial_searchlight_with_full_report


Project Name: PyMVPA/PyMVPA
Commit Name: beaa70afb296c9540bce8695785be4379354b1cc
Time: 2007-12-28
Author: debian@onerussian.com
File Name: tests/test_datameasure.py
Class Name: SensitivityAnalysersTests
Method Name: testBIG


Project Name: PyMVPA/PyMVPA
Commit Name: 7819dc8214bdd63f10185c1381bb3165edf49036
Time: 2009-12-28
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_searchlight.py
Class Name: SearchlightTests
Method Name: testSpatialSearchlight