309d87e3323920f29f530b0037b9a4569b28b785,mvpa/tests/test_procrust.py,ProcrusteanMapperTests,testSimple,#ProcrusteanMapperTests#,20

Before Change


            for s, scaling in ((0.3, True), (1.0, False)):
                pm = ProcrusteanMapper(scaling=scaling)

                t1, t2 = 0.2, 0.5

                // Create source/target data
                d = d_orig[:, :nf_s]

After Change



            for s, scaling in ((0.3, True), (1.0, False)):
                pm = ProcrusteanMapper(scaling=scaling)
                pm2 = ProcrusteanMapper(scaling=scaling)

                t1, t2 = d_orig[23, 1], d_orig[22, 1]

                // Create source/target data
                d = d_orig[:, :nf_s]
                d_s = d + t1
                d_t = N.dot(s * d, R) + t2

                // train bloody mapper(s)
                pm.train(d_s, d_t)
                ds2 = Dataset(samples=d_s, labels=d_t)
                pm2.train(ds2)

                // verify that both created the same transformation
                self.failUnless(norm(pm._T - pm2._T) <= 1e-12)
                self.failUnless(norm(pm._trans - pm2._trans) <= 1e-12)

                // do forward transformation on the same source data
                d_s_f = pm.forward(d_s)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 309d87e3323920f29f530b0037b9a4569b28b785
Time: 2009-05-15
Author: debian@onerussian.com
File Name: mvpa/tests/test_procrust.py
Class Name: ProcrusteanMapperTests
Method Name: testSimple


Project Name: PyMVPA/PyMVPA
Commit Name: ae3142f1e48c4c5efa7ee705491f9f345f7d9b29
Time: 2007-10-09
Author: michael.hanke@gmail.com
File Name: tests/test_featsel.py
Class Name: FeatSelValidationTests
Method Name: testIncrementalSearch


Project Name: PyMVPA/PyMVPA
Commit Name: 7859ecea2734c65fa6eabb014b2936c5aebc5cb2
Time: 2007-11-07
Author: debian@onerussian.com
File Name: tests/test_dataset.py
Class Name: DatasetTests
Method Name: testZScoring