<p dir="auto">here is the backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FAIL: Doctest: scikits.learn.datasets.base.load_sample_image
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/fabian/lib/python2.7/doctest.py&quot;, line 2153, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for scikits.learn.datasets.base.load_sample_image
  File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 403, in load_sample_image

----------------------------------------------------------------------
File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 406, in scikits.learn.datasets.base.load_sample_image
Failed example:
    china = load_sample_image('china.jpg')
Exception raised:
    Traceback (most recent call last):
      File &quot;/home/fabian/lib/python2.7/doctest.py&quot;, line 1248, in __run
        compileflags, 1) in test.globs
      File &quot;&lt;doctest scikits.learn.datasets.base.load_sample_image[0]&gt;&quot;, line 1, in &lt;module&gt;
        china = load_sample_image('china.jpg')
      File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 418, in load_sample_image
        images = load_sample_images()
      File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 389, in load_sample_images
        raise ImportError(&quot;The Python Imaging Library (PIL)&quot;
    ImportError: The Python Imaging Library (PIL)is required to load data from jpeg files"><pre class="notranslate"><code class="notranslate">FAIL: Doctest: scikits.learn.datasets.base.load_sample_image
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fabian/lib/python2.7/doctest.py", line 2153, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for scikits.learn.datasets.base.load_sample_image
  File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 403, in load_sample_image

----------------------------------------------------------------------
File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 406, in scikits.learn.datasets.base.load_sample_image
Failed example:
    china = load_sample_image('china.jpg')
Exception raised:
    Traceback (most recent call last):
      File "/home/fabian/lib/python2.7/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "&lt;doctest scikits.learn.datasets.base.load_sample_image[0]&gt;", line 1, in &lt;module&gt;
        china = load_sample_image('china.jpg')
      File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 418, in load_sample_image
        images = load_sample_images()
      File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 389, in load_sample_images
        raise ImportError("The Python Imaging Library (PIL)"
    ImportError: The Python Imaging Library (PIL)is required to load data from jpeg files
</code></pre></div>
<h4 dir="auto">Description</h4>

<p dir="auto">Calculating recall using micro-averaging needs to be optimized for large scale dense arrays.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.metrics import recall_score

recall = recall_score(actual, predictions, average='micro')"><pre class="notranslate"><code class="notranslate">from sklearn.metrics import recall_score

recall = recall_score(actual, predictions, average='micro')
</code></pre></div>
<h4 dir="auto">Versions</h4>

<p dir="auto">Darwin-15.5.0-x86_64-i386-64bit<br>
Python 3.5.2 |Anaconda custom (x86_64)| (default, Jul  2 2016, 17:52:12)<br>
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]<br>
NumPy 1.11.1<br>
SciPy 0.18.1</p>