<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hmm, I'm trying to follow the same pattern as the tuturial at <a href="http://www.pymvpa.org/tutorial_significance.html">http://www.pymvpa.org/tutorial_significance.html</a>:</div><div><br></div><div>>>> distr_est = MCNullDist(repeater, tail='left',<br>...                        measure=null_cv,<br>...                        enable_ca=['dist_samples'])</div><div><br></div><div>Can you give me a hint as to what I'd need to change?</div><div><br></div><div>The cross validation folds should be leave-two-out (one from each subject group), hence the partitioner and sifter. Then, we should do the same analysis PERM_COUNT times, permuting the labels of each training set for each fold.</div><div><br></div><div>Here, it looks like dist_est is starting with the same dataset PERM_COUNT times, then building its folds by applying the partitioner, then the sifter, then a single iteration of the permutator to each resulting fold. This sounds like what I want, but isn't coming out that way.</div><div><br></div><div>Ben</div><br><div><div>On Aug 31, 2014, at 10:08 AM, Nick Oosterhof <<a href="mailto:nikolaas.oosterhof@unitn.it">nikolaas.oosterhof@unitn.it</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Aug 31, 2014, at 4:24 PM, Ben Acland <<a href="mailto:benacland@gmail.com">benacland@gmail.com</a>> wrote:<br><br><blockquote type="cite">Can anyone see a mistake in the following code that would cause all of my permutation tests to return the same mean error value? <br><br># cross-validated linear svm with permutation testing (leave out 1 from each sub group)<br>rep = mp.Repeater(count=PERM_COUNT)<br></blockquote><br>[...]<br><br><blockquote type="cite">distr_est = mp.MCNullDist(rep,<br>                         tail='left',<br>                         measure=null_cv,<br>                         enable_ca=['dist_samples'])<br></blockquote><br>[...]<br><br><blockquote type="cite">... and at the end of all of this, cvmcc.null_dist.ca.dist_samples contains PERM_COUNT repetitions of a single value.<br></blockquote><br>You are feeding your Repeater as the permutator argument. It would seem that the MCNullDist has no access to unpermuted datasets. <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>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa<br></blockquote></div><br></body></html>