<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thanks,&nbsp;Yaroslav, I've had a glance at the tutorial for 0.6 version and it looks like I do have to learn twice...&nbsp;Is there a PDF file of the tutorial? - it would be easier to read and search for specific commands.<div><br></div><div>For performing permutation test for cross validation on 0.4 version, if there isn't an easy way to do the permutation directly using&nbsp;CrossValidatedTransferError, is the following code (using TransferError) correct?</div><div><br></div><div>#===========</div><div><div>nd = MCNullDist(permutations=2500,tail='left',enable_states=['dist_samples'])</div><div>terr = TransferError(clf,null_dist=nd)&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div>cv_index = 0</div><div>splitter = NFoldSplitter(cvtype=1)</div><div>for wdata, vdata in splitter(dataset):</div><div>&nbsp;&nbsp;&nbsp;err = terr(vdata,wdata)</div><div>&nbsp;&nbsp; Error[SubjIndex,cv_index] = err</div><div>&nbsp;&nbsp; Pvalue[SubjIndex,cv_index] = terr.null_prob</div><div>&nbsp;&nbsp; Distribution_normalizedMeanSD = nd.dist_samples</div><div>&nbsp;&nbsp; nd.clean()</div></div><div>&nbsp;&nbsp;&nbsp;cv_index += 1</div><div>#===========</div><div><br></div><div>In this way, I can get the null distribution for each split (i.e. dist_samples). The prediction error of the cross-validation is the average of prediction error of all splits, I suppose I will need to generate another null distribution for the mean predication error by sampling from these null distributions of all split and then calculating the mean of the new samples and repeat the procedure for, e.g., 1000 times? Is it correct?<br><div><br></div><div>Best,</div><div>Meng<br><br>&gt; Date: Fri, 11 Mar 2011 16:03:36 -0500<br>&gt; From: debian@onerussian.com<br>&gt; To: pkg-exppsy-pymvpa@lists.alioth.debian.org<br>&gt; Subject: Re: [pymvpa] Cross validation and permutation test<br>&gt; <br>&gt; yes -- 0.6 version diverges from 0.4 quite significantly.  that is why I<br>&gt; recommended to start learning it instead of 0.4 so you would not need to<br>&gt; learn twice.<br>&gt; <br>&gt; For 0.6 there is a good tutorial which would guide you through:<br>&gt; http://www.pymvpa.org/tutorial.html<br>&gt; <br>&gt; <br>&gt; On Fri, 11 Mar 2011, Meng Liang wrote:<br>&gt; <br>&gt; &gt;    I removed python-mvpa and installed python-mvpa-snapshot, everything<br>&gt; &gt;    seemed fine. However, after I installed the 0.6.0~rc2 version, I got<br>&gt; &gt;    error message when I tried to import 'detrend' and 'NiftiDataset'.<br>&gt; -- <br>&gt; =------------------------------------------------------------------=<br>&gt; Keep in touch                                     www.onerussian.com<br>&gt; Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic<br>&gt; <br>&gt; _______________________________________________<br>&gt; Pkg-ExpPsy-PyMVPA mailing list<br>&gt; Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org<br>&gt; http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa<br></div></div>                                               </body>
</html>