Pages

Thursday, February 14, 2019

Load mnist dataset from a local file in jupyter

Recently while trying AI coding behind a proxy I was unable to load data from minist dataset from cloud.
So I manually downloaded the file "mnist.npz" kept it in {username}/.keras/datasets/ on my local machine and used the following command to load it

(X_train,y_train),(X_test,y_test)=mnist.load_data(path='mnist.npz');

And this block executed without any errors.

No comments:

Post a Comment