wild guess is that you have not defined 'chunks' correctly, so splitter produces actually empty dataset (None) for 'training', thus the failure
it is always good to have a look at print fmri_src_ev.summary() ;-) On Thu, 15 Apr 2010, Temilade Adelore wrote: > Hello Yaroslav, > Thank you for responding. > Here the link to my code on gist <[1]http://gist.github.com/367912> > At line 93 in the script I get the following error: > File "/usr/lib/pymodules/python2.6/matplotlib/image.py", line 294, in > set_data > raise TypeError("Invalid dimensions for image data") > TypeError: Invalid dimensions for image data > At line 116 in the script I also get the following error: > File "/usr/lib/pymodules/python2.6/mvpa/clfs/base.py", line 369, in > train > if dataset.nfeatures == 0 or dataset.nsamples == 0: > AttributeError: 'NoneType' object has no attribute 'nfeatures' > However when I type in following in the shell I get: > >>> fmri_src_ev.nfeatures > 405504 > >>> fmri_src_ev.nsamples > 44 -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] _______________________________________________ Pkg-ExpPsy-PyMVPA mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa

