<p dir="auto">I'm using a large dataset which takes up most of my memory. <code class="notranslate">cross_val_score</code> is basically unable to run on it (I get a <code class="notranslate">MemoryError</code>) since AFAICT data is duplicated for each fold (with <code class="notranslate">list()</code> here):<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/scikit-learn/scikit-learn/blob/38f6a91566bc643e2a8f76beb16f3e673faab848/sklearn/model_selection/_validation.py#L131">scikit-learn/sklearn/model_selection/_validation.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 131
      in
      <a data-pjax="true" class="commit-tease-sha" href="/scikit-learn/scikit-learn/commit/38f6a91566bc643e2a8f76beb16f3e673faab848">38f6a91</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L131" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="131"></td>
          <td id="LC131" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">cv_iter</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">cv</span>.<span class="pl-en">split</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">groups</span>)) </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">Would it be possible to use views or otherwise avoid this duplication?</p>
<h4 dir="auto">Description</h4>
<p dir="auto"><code class="notranslate">make html</code> and <code class="notranslate">make html-noplot</code> fails on docs/</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto"><code class="notranslate">cd docs</code><br>
<code class="notranslate">make html</code></p>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">Should build without errors</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">Sphinx version: 1.4.4<br>
Python version: 2.7.6 (CPython)<br>
Docutils version: 0.11 release<br>
Jinja2 version: 2.7.2<br>
Last messages:</p>
<p dir="auto">Loaded extensions:<br>
Traceback (most recent call last):<br>
File "/usr/local/lib/python2.7/dist-packages/sphinx/cmdline.py", line 243, in main<br>
opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)<br>
File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 204, in <strong>init</strong><br>
self._init_builder(self.buildername)<br>
File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 280, in _init_builder<br>
self.emit('builder-inited')<br>
File "/usr/local/lib/python2.7/dist-packages/sphinx/application.py", line 552, in emit<br>
results.append(callback(self, *args))<br>
File "/home/rameshwar/Open-Source/scikit-learn/doc/sphinxext/sphinx_gallery/gen_gallery.py", line 119, in generate_gallery_rst<br>
File "/home/rameshwar/Open-Source/scikit-learn/doc/sphinxext/sphinx_gallery/gen_rst.py", line 464, in generate_dir_rst<br>
File "/home/rameshwar/Open-Source/scikit-learn/doc/sphinxext/sphinx_gallery/gen_rst.py", line 669, in generate_file_rst<br>
File "/home/rameshwar/Open-Source/scikit-learn/doc/sphinxext/sphinx_gallery/gen_rst.py", line 441, in save_thumbnail<br>
File "/home/rameshwar/Open-Source/scikit-learn/doc/sphinxext/sphinx_gallery/gen_rst.py", line 379, in scale_image<br>
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2410, in open<br>
fp = builtins.open(filename, "rb")<br>
IOError: [Errno 2] No such file or directory: '/home/rameshwar/Open-Source/scikit-learn/doc/sphinxext/sphinx_gallery/_static/no_image.png'</p>
<h4 dir="auto">Versions</h4>
<p dir="auto">Linux-3.19.0-42-generic-x86_64-with-Ubuntu-14.04-trusty<br>
'Python', '2.7.6 (default, Oct 26 2016, 20:30:19) \n[GCC 4.8.4]'<br>
'NumPy', '1.11.1'<br>
'SciPy', '0.13.3'<br>
'Scikit-Learn', '0.19.0'</p>