<div dir="ltr">You're right, thank you, I was looking through the incorrect data set - My original data set (the one I wrote to right after fmri_dataset), has the following mappers:<div><br></div><div><div>In [104]: data[1].a.mapper</div>
<div>Out[104]: ChainMapper(nodes=[FlattenMapper(shape=(59, 69, 59), auto_train=True, space='voxel_indices'), StaticFeatureSelection(dshape=(240189,), slicearg=array([False, False, False, ..., False, False, False], dtype=bool))])</div>
</div><div><br></div><div>However, after this data set, I constructed a sub-data set by just selecting certain samples with the target values I wanted, splitting the datasets accordingly, and then reconcatenating them into a new data set. (I then ran the ZScoreMapper() on this new data set, since I only wanted to Z score the samples I was going to use in the searchlight analysis.)</div>
<div><br></div><div><div>In [105]: data_stack[1].a.mapper</div><div>Out[105]: ZScoreMapper()</div></div><div><br></div><div>Finally, I ran the searchlight analysis which resulted in:</div><div><div>In [106]: res[1].a.mapper</div>
<div>Out[106]: ZScoreMapper()</div></div><div><br></div><div>Would it then be accurate for me to simply use the ChainMapper from the original data set (exclude the ZScoreMapper from the map2nifti function), like so:</div>
<div><br></div><div>map2nifti(data[1], res[1].samples)</div><div><br></div><div>Or would it be more accurate of me to construct a new ChainMapper which includes the ZScoreMapper, append it to the ChainMapper of the original data set, and then re-attribute it to the searchlight output data set? </div>
<div><br></div><div>Thanks again! This has been a huge hassle, and you've been a great help (though I realize that much of the troubles were my own carelessness now... Sorry!).</div><div><br></div><div>Taku</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 4, 2013 at 11:00 AM, Yaroslav Halchenko <span dir="ltr"><<a href="mailto:debian@onerussian.com" target="_blank">debian@onerussian.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Mon, 04 Nov 2013, Taku Ito wrote:<br>
<br>
</div><div class="im">> Oh! �I did in fact have one, though it's the Zscore-mapper (I had<br>
> previously thought I checked 'mapper' in res[1].a, but perhaps it came out<br>
> incorrectly). �Though I realize Z-score mapper probably doesn't have a<br>
> reverse mapper, and perhaps that's the issue? �Is there a workaround you<br>
> may be aware of?<br>
<br>
</div>hm -- it should not be just a zscore mapper but rather also the ones<br>
which lead to that point. (flattening, feature selection (you had a<br>
mask, right?)). please show print ds.a.mapper and if it is indeed only<br>
zscore -- then a code snippet which lead to that point. Inspect also<br>
either you had a correct mapper right after fmri_dataset<br>
<div class="im"><br>
> Thanks!<br>
<br>
> On Mon, Nov 4, 2013 at 10:48 AM, Yaroslav Halchenko<br>
</div><div class="im">> <[1]<a href="mailto:debian@onerussian.com">debian@onerussian.com</a>> wrote:<br>
<br>
> On Mon, 04 Nov 2013, Taku Ito wrote:<br>
<br>
> > � �Are all datasets supposed to have mappers? �My data set was loaded<br>
> > � �directly from a NIFTI file, using mvpa2.datasets.mri.fmri_dataset,<br>
> and<br>
> > � �when I loaded it there was no mapper attached,<br>
<br>
> it should be there under .a.mapper ... see e.g.<br>
</div>> [2]<a href="http://www.pymvpa.org/tutorial_datasets.html#loading-fmri-data" target="_blank">http://www.pymvpa.org/tutorial_datasets.html#loading-fmri-data</a><br>
<div class="HOEnZb"><div class="h5">> for more information<br>
> > though I attributed it<br>
> > � �target values and chunks. �In other words, my original data set<br>
> also does<br>
> > � �not have any mappers. �Should I be manually attributing mappers to<br>
> my data<br>
> > � �set (e.g., the searchlight call or the z-scoring call) and attach<br>
> all<br>
> > � �those mappers as a Chain?<br>
<br>
> let's first figure out if you indeed didn't have any ;-)<br>
--<br>
Yaroslav O. Halchenko, Ph.D.<br>
<a href="http://neuro.debian.net" target="_blank">http://neuro.debian.net</a> <a href="http://www.pymvpa.org" target="_blank">http://www.pymvpa.org</a> <a href="http://www.fail2ban.org" target="_blank">http://www.fail2ban.org</a><br>
Senior Research Associate, Psychological and Brain Sciences Dept.<br>
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755<br>
Phone: <a href="tel:%2B1%20%28603%29%20646-9834" value="+16036469834">+1 (603) 646-9834</a> Fax: <a href="tel:%2B1%20%28603%29%20646-1419" value="+16036461419">+1 (603) 646-1419</a><br>
WWW: <a href="http://www.linkedin.com/in/yarik" target="_blank">http://www.linkedin.com/in/yarik</a><br>
<br>
_______________________________________________<br>
Pkg-ExpPsy-PyMVPA mailing list<br>
<a href="mailto:Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org">Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa</a></div></div></blockquote></div><br><br clear="all">
<div><br></div>-- <br><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666">Takuya Ito</font></span><br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666">Cognitive Control & Psychopathology Laboratory</font></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666">Washington University in St. Louis<br></font></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666"><br>
</font></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666">Cole Neuroscience Laboratory (</font></span><font color="#666666"><a href="http://www.mwcole.net/" target="_blank">http://www.mwcole.net/</a>)</font></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666">Center for Molecular and Behavioral Neuroscience (CMBN)</font></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#666666">Rutgers-Newark University</font></span></div>
</div>
</div>