<div dir="ltr"><div><br></div>Thanks a lot!  It worked!<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-25 12:09 GMT-08:00 bthirion <span dir="ltr"><<a href="mailto:bertrand.thirion@inria.fr" target="_blank">bertrand.thirion@inria.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="m_-955995316627568574moz-cite-prefix">    Dear Julio,<br>
      <br>
          Given the warnings on compute_epi_mask, I think that you
      should remove the folder
      nilearn_cache/joblib/nilearn/<wbr>masking/compute_epi_mask and launch
      again.<br>
          Best,<br>
      <br>
      Bertrand Thirion<div><div class="h5"><br>
      <br>
      <br>
      On 24/02/2017 02:36, Julio Villalon wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi Nilearn team,
        <div><br>
        </div>
        <div>I am trying to run the SpaceNet example:</div>
        <div><br>
        </div>
        <div><a href="https://nilearn.github.io/auto_examples/02_decoding/plot_haxby_space_net.html#sphx-glr-auto-examples-02-decoding-plot-haxby-space-net-py" target="_blank">https://nilearn.github.io/<wbr>auto_examples/02_decoding/<wbr>plot_haxby_space_net.html#<wbr>sphx-glr-auto-examples-02-<wbr>decoding-plot-haxby-space-net-<wbr>py</a><br>
        </div>
        <div><br>
          <div>And I am getting the following error:</div>
          <div><br>
          </div>
          <div>' ' ' </div>
          <div>
            <div>ValueError: Found array with 0 sample(s) (shape=(0,
              129600)) while a minimum of 1 is required.</div>
            <div><br>
            </div>
            <div>/Users/jvillalo/scikit-learn/<wbr>sklearn/externals/joblib/<wbr>memory.py:133:
              DeprecationWarning: The file
'nilearn_cache/joblib/nilearn/<wbr>masking/compute_epi_mask/<wbr>8ac3f6747d8c3cbe01809029506bc2<wbr>c4/output.pkl'
              has been generated with a joblib version less than 0.10.
              Please regenerate this pickle file.</div>
            <div>  return numpy_pickle.load(filename,
              mmap_mode=mmap_mode)</div>
          </div>
        </div>
        <div>' ' ' </div>
        <div><br>
        </div>
        <div>I am using Python 3.5, Numpy 1.12, Scipy 0.18.1. I also
          included in my PYTHONPATH the latest development versions
          (master branches) of Nilearn and Scikit-learn. </div>
        <div><br>
        </div>
        <div>Can anyone point me in the right direction of how to solve
          this problem?</div>
        <div><br>
        </div>
        <div>Thank you</div>
        <div><br>
        </div>
        <div>Julio Villalon</div>
        <div>USC Imaging Genetics Center</div>
        <div><br>
        </div>
        <div>This is full error message:</div>
        <div>------------------------------<wbr>------------------</div>
        <div>
          <div>Traceback (most recent call last):</div>
          <div>  File
"/Users/jvillalo/anaconda/lib/<wbr>python3.5/site-packages/<wbr>IPython/core/interactiveshell.<wbr>py",
            line 2481, in safe_execfile</div>
          <div>    self.compile if kw['shell_futures'] else None)</div>
          <div>  File
"/Users/jvillalo/anaconda/lib/<wbr>python3.5/site-packages/<wbr>IPython/utils/py3compat.py",
            line 186, in execfile</div>
          <div>    exec(compiler(f.read(), fname, 'exec'), glob, loc)</div>
          <div>  File
"/Users/jvillalo/Documents/<wbr>IGC/Conferences/MICCAI_2016/<wbr>Gaels_code/plot_haxby_space_<wbr>net.py",
            line 70, in <module></div>
          <div>    decoder.fit(X_train, y_train)</div>
          <div>  File
            "/Users/jvillalo/nilearn/<wbr>nilearn/decoding/space_net.py"<wbr>,
            line 783, in fit</div>
          <div>    multi_output=True, y_numeric=True)</div>
          <div>  File
            "/Users/jvillalo/nilearn/<wbr>nilearn/_utils/fixes/sklearn_<wbr>validation.py",
            line 195, in check_X_y</div>
          <div>    ensure_min_features)</div>
          <div>  File
            "/Users/jvillalo/nilearn/<wbr>nilearn/_utils/fixes/sklearn_<wbr>validation.py",
            line 97, in check_array</div>
          <div>    % (n_samples, shape_repr, ensure_min_samples))</div>
          <div>ValueError: Found array with 0 sample(s) (shape=(0,
            129600)) while a minimum of 1 is required.</div>
          <div><br>
          </div>
          <div>/Users/jvillalo/scikit-learn/<wbr>sklearn/externals/joblib/<wbr>memory.py:133:
            DeprecationWarning: The file
'nilearn_cache/joblib/nilearn/<wbr>masking/compute_epi_mask/<wbr>8ac3f6747d8c3cbe01809029506bc2<wbr>c4/output.pkl'
            has been generated with a joblib version less than 0.10.
            Please regenerate this pickle file.</div>
          <div>  return numpy_pickle.load(filename, mmap_mode=mmap_mode)</div>
          <div>/Users/jvillalo/scikit-learn/<wbr>sklearn/externals/joblib/<wbr>memory.py:133:
            DeprecationWarning: The file
'nilearn_cache/joblib/nilearn/<wbr>image/resampling/resample_img/<wbr>ea3a4d90803321dbf749b23ff6acfa<wbr>18/output.pkl'
            has been generated with a joblib version less than 0.10.
            Please regenerate this pickle file.</div>
          <div>  return numpy_pickle.load(filename, mmap_mode=mmap_mode)</div>
        </div>
        <div><br>
        </div>
        <div>------------------------------<wbr>------------------------------<wbr>-</div>
      </div>
      <br>
      <fieldset class="m_-955995316627568574mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><span class=""><pre>______________________________<wbr>_________________
Neuroimaging mailing list
<a class="m_-955995316627568574moz-txt-link-abbreviated" href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a>
<a class="m_-955995316627568574moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/neuroimaging" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/neuroimaging</a>
</pre>
    </span></blockquote>
    <p><br>
    </p>
  </div>

<br>______________________________<wbr>_________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br></div>