I have been experimenting with a Keras example, which needs to import MNIST data
from keras.datasets import mnist
import numpy as np
(x_train, _), (x_test, _) =
You do not need additional code for that but can tell load_data
to load a local version in the first place:
~/.keras/datasets/
(on Linux and macOS)load_data(path='mnist.npz')
with the right file name