I cannot download the Keras MNIST db the simple way due to proxy.
So I have downloaded a local version from here : https://s3.amazonaws.com/img-datasets/mnist.pkl.gz
I am importing that to my notebook with the following code :
import gzip
import pickle
f = gzip.open('mnist.pkl.gz', 'rb')
if sys.version_info < (3,):
data = pickle.load(f)
else:
data = pickle.load(f, encoding='bytes')
f.close()
print(data)
(X_train, y_train), (X_test, y_test) = data
but I'm not really sure how to play with it.
I am trying to print the shapes like so :
print(X_train.shape)
print(y_train.shape)
but this is giving the output :
(60000, 28, 28)
(60000,)
which doesn't really make sense to me. What does this actually mean? How can I print it more meaningfully?