3c1eafeea79d946575ea5b6b5cb02f945897d2fd,mvpa/tests/test_mapper.py,,test_flatten,#,28
Before Change
assert_array_equal(dsflat.samples, target)
// test index creation
d = Dataset(N.ones((2,2,2)) )
f = FlattenMapper(inspace="voxel")
f.train(d)
md = f(d)
t = array(([0,0],[0,1],[1,0],[1,1]))
assert_array_equal(t, md.fa.voxel)
After Change
assert_array_equal(fm.reverse1(N.array(oneds_target[0])), oneds[0])
// try dataset mode, with some feature attribute
fattr = N.arange(N.prod(samples_shape)).reshape(samples_shape)
ds = Dataset(data, fa={"awesome": fattr.copy()})
assert_equal(ds.samples.shape, data_shape)
fm.train(ds)
dsflat = fm.forward(ds)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: scipy/scipy
Commit Name: 9a0125ccc0d79e423bd33b05fd1f1fd53e6ed59b
Time: 2008-02-26
Author: wnbell@localhost
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestFancyIndexing
Method Name: test_fancy_indexing
Project Name: acoular/acoular
Commit Name: e4c5e5ed0f29f6d7adec770685d54a6016217d7f
Time: 2017-10-11
Author: tom.j.gensch@campus.tu-berlin.de
File Name: acoular/fbeamform.py
Class Name: PointSpreadFunction
Method Name: _get_psf