3c1eafeea79d946575ea5b6b5cb02f945897d2fd,mvpa/tests/test_mapper.py,,test_flatten,#,28

Before Change



        // check one dimensional data, treated as scalar samples
        oned = N.arange(5)
        oned_target = [[0],[1],[2],[3],[4]]
        fm.train(Dataset(oned))
        assert_array_equal(fm.forward1(oned), oned_target)
        assert_array_equal(fm.reverse(N.array(oned_target)), oned)

After Change


        assert_array_equal(index_target, dsflat.fa.voxel)

        // and back
        revds = fm.reverse(dsflat)
        ok_(isinstance(revds, Dataset))
        ok_(isinstance(revds.samples, myarray))
        assert_array_equal(revds.samples, data)
        assert_array_equal(revds.fa.awesome, fattr)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 3c1eafeea79d946575ea5b6b5cb02f945897d2fd
Time: 2009-12-10
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_mapper.py
Class Name:
Method Name: test_flatten


Project Name: chakki-works/doccano
Commit Name: a47b853c7c2edbafbdf0b709a5022cdeebe0d8ff
Time: 2019-02-20
Author: light.tree.1.13@gmail.com
File Name: app/server/tests/test_api.py
Class Name: TestProjects
Method Name: setUpTestData


Project Name: keras-team/keras
Commit Name: 5e73db6c00d62ac61cbae9056628a7683122b392
Time: 2016-12-16
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: rnn


Project Name: librosa/librosa
Commit Name: 538f969f17ef232c75588dfa2a3157bd97aae45d
Time: 2013-02-11
Author: brm2132@columbia.edu
File Name: librosa/beat.py
Class Name:
Method Name: _beat_tracker


Project Name: balakg/posewarp-cvpr2018
Commit Name: e12871d8ee11ea6061707005aa5640c1f97a0a9d
Time: 2017-08-14
Author: balakg@thousandeyes.csail.mit.edu
File Name: networks.py
Class Name:
Method Name: unet