Downloading data from https://s3.amazonaws.com/img-datasets/mnist.npz
---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-3-179e27036aa7> in <module>()
22
23 # the data, shuffled and split between train and test sets
---> 24 (x_train, y_train), (x_test, y_test) = mnist.load_data()
25
26 #Only look at 3s and 8s
/opt/conda/lib/python3.6/site-packages/keras/datasets/mnist.py in load_data(path)
13 Tuple of Numpy arrays: `(x_train, y_train), (x_test, y_test)`.
14 """
---> 15 path = get_file(path, origin='https://s3.amazonaws.com/img-datasets/mnist.npz')
16 f = np.load(path)
17 x_train = f['x_train']
/opt/conda/lib/python3.6/site-packages/keras/utils/data_utils.py in get_file(fname, origin, untar, md5_hash, file_hash, cache_subdir, hash_algorithm, extract, archive_format, cache_dir)
199 try:
200 urlretrieve(origin, fpath,
--> 201 functools.partial(dl_progress, progbar=progbar))
202 except URLError as e:
203 raise Exception(error_msg.format(origin, e.errno, e.reason))
/opt/conda/lib/python3.6/urllib/request.py in urlretrieve(url, filename, reporthook, data)
275
276 while True:
--> 277 block = fp.read(bs)
278 if not block:
279 break
/opt/conda/lib/python3.6/http/client.py in read(self, amt)
447 # Amount is given, implement using readinto
448 b = bytearray(amt)
--> 449 n = self.readinto(b)
450 return memoryview(b)[:n].tobytes()
451 else:
/opt/conda/lib/python3.6/http/client.py in readinto(self, b)
491 # connection, and the user is reading more bytes than will be provided
492 # (for example, reading in 1k chunks)
--> 493 n = self.fp.readinto(b)
494 if not n and b:
495 # Ideally, we would raise IncompleteRead if the content-length
/opt/conda/lib/python3.6/socket.py in readinto(self, b)
584 while True:
585 try:
--> 586 return self._sock.recv_into(b)
587 except timeout:
588 self._timeout_occurred = True
/opt/conda/lib/python3.6/ssl.py in recv_into(self, buffer, nbytes, flags)
1000 "non-zero flags not allowed in calls to recv_into() on %s" %
1001 self.__class__)
-> 1002 return self.read(nbytes, buffer)
1003 else:
1004 return socket.recv_into(self, buffer, nbytes, flags)
/opt/conda/lib/python3.6/ssl.py in read(self, len, buffer)
863 raise ValueError("Read on closed or unwrapped SSL socket.")
864 try:
--> 865 return self._sslobj.read(len, buffer)
866 except SSLError as x:
867 if x.args[0] == SSL_ERROR_EOF and self.suppress_ragged_eofs:
/opt/conda/lib/python3.6/ssl.py in read(self, len, buffer)
623 """
624 if buffer is not None:
--> 625 v = self._sslobj.read(len, buffer)
626 else:
627 v = self._sslobj.read(len)
KeyboardInterrupt: