[pymvpa] additional data shuffling/cleaning after loading up data using fmri_dataset

Regina Lapate lapate at gmail.com
Sat Sep 9 04:28:14 UTC 2017


Hello all,

I have the following newbie question:

--Can one do regular python operations such as shuffling trials (or
excluding trials with extreme outlier values) after loading up a dataset
(nifti & targets) using *mvpa2.datasets.mri.fmri_dataset*?

I assumed so, but upon trying to shuffle trials of a given condition using
numpy:

*np.random.shuffle(ds[ds.targets==1])*

I get the following error message:

*TypeError: 'Dataset' object does not support item assignment*

Thoughts or suggestions on how to go about this?

Thanks in advance for your help,

Regina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20170908/d8c264f2/attachment-0001.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list