<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello PyMVPA community,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am currently working on a fMRI data applying an ENET classifier.
<o:p></o:p></p>
<p class="MsoNormal">My PyMVPA is running under Linux environment, with python 2.7.12.
<o:p></o:p></p>
<p class="MsoNormal">The design of the data is a repeated measurement with pre and post conditions.  <o:p></o:p></p>
<p class="MsoNormal">In my understanding, in my case, chunk value should store subject ID, target value should store the time conditions.
<o:p></o:p></p>
<p class="MsoNormal">I am using the classifier code that I found in the maillist:
<a href="http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/2009q1/000412.html">
http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/2009q1/000412.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">clf = FeatureSelectionClassifier(\<o:p></o:p></p>
<p class="MsoNormal">                ENET(lm=1.0,max_steps=500,trace=False,normalize=False),\<o:p></o:p></p>
<p class="MsoNormal">                SensitivityBasedFeatureSelection(\<o:p></o:p></p>
<p class="MsoNormal">                                CorrStability(),\<o:p></o:p></p>
<p class="MsoNormal">                                FixedNElementTailSelector(5000,mode='select',tail='upper')),\<o:p></o:p></p>
<p class="MsoNormal">                descr="ENET on 5K best(CorrStability) features")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am also using 1000 times of permutation to test the null hypothesis, which are almost the same as those in the tutorial:
<a href="http://www.pymvpa.org/tutorial_significance.html#the-following-content-is-incomplete-and-experimental">
http://www.pymvpa.org/tutorial_significance.html#the-following-content-is-incomplete-and-experimental</a> (section: Avoiding the trap OR Advanced magic 101)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, errors suspend my program:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">/lustre/work/apps/anaconda/lib/python2.7/site-packages/mvpa2/measures/corrstability.py:94: RuntimeWarning: invalid value encountered in divide<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  covar = (dat1*dat2).mean(0) / (dat1.std(0) * dat2.std(0))<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">/lustre/work/apps/anaconda/lib/python2.7/site-packages/rpy2/rinterface/__init__.py:185: RRuntimeWarning: Error in y - mu : non-numeric argument to binary operator<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  warnings.warn(x, RRuntimeWarning)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  File "15subj_enet.py", line 68, in <module><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    err_fds = cv_mc_corr_fds(fds)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/lustre/work/apps/anaconda/lib/python2.7/site-packages/mvpa2/base/learner.py", line 258, in __call__<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    return super(Learner, self).__call__(ds)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/lustre/work/apps/anaconda/lib/python2.7/site-packages/mvpa2/base/node.py", line 136, in __call__<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    self._precall(ds)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/lustre/work/apps/anaconda/lib/python2.7/site-packages/mvpa2/measures/base.py", line 120, in _precall<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    self.__null_dist.fit(measure, ds)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">  File "/lustre/work/apps/anaconda/lib/python2.7/site-packages/mvpa2/clfs/stats.py", line 427, in fit<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    % (measure, skipped))<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">RuntimeError: Failed to obtain any value from <CrossValidation>. 1000 measurements were skipped. Check above warnings, and your code/data<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I was wondering if someone could kindly explain what are those mean, and how do I resolve this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you very much!<o:p></o:p></p>
<p class="MsoNormal">Carl<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>