title: How to fix "ConnectionResetError: [Errno 104] Connection reset by peer" error?
body: <p>I'm trying to download MNIST dataset on GPU of google colaboratory. But it is showing me "ConnectionResetError: [Errno 104] Connection reset by peer" error message.</p>
  
  <pre><code>from sklearn.datasets import fetch_mldata
  dataset = fetch_mldata('MNIST original')
  data = dataset.data
  </code></pre>
  
  <p>And the following error I'm getting:</p>
  
  <pre><code>/usr/local/lib/python3.6/dist-packages/sklearn/utils/deprecation.py:85: DeprecationWarning: Function fetch_mldata is deprecated; fetch_mldata was deprecated in version 0.20 and will be removed in version 0.22. Please use fetch_openml.
    warnings.warn(msg, category=DeprecationWarning)
  /usr/local/lib/python3.6/dist-packages/sklearn/utils/deprecation.py:85: DeprecationWarning: Function mldata_filename is deprecated; mldata_filename was deprecated in version 0.20 and will be removed in version 0.22. Please use fetch_openml.
    warnings.warn(msg, category=DeprecationWarning)
  ---------------------------------------------------------------------------
  ConnectionResetError                      Traceback (most recent call last)
  &lt;ipython-input-8-8ae517e9a088&gt; in &lt;module&gt;()
        1 from sklearn.datasets import fetch_mldata
  ----&gt; 2 dataset = fetch_mldata('MNIST original')
        3 data = dataset.data
  
  11 frames
  /usr/lib/python3.6/socket.py in readinto(self, b)
      584         while True:
      585             try:
  --&gt; 586                 return self._sock.recv_into(b)
      587             except timeout:
      588                 self._timeout_occurred = True
  
  ConnectionResetError: [Errno 104] Connection reset by peer
  </code></pre>
  
  <p>It is taking too long to show this error message. How to resolve this?</p>