5

I've got a working environment for running Keras on Google Colab, but cannot figure out how to load MNIST data so I can import it into my program. Any suggestions greatly appreciated!

Alex V
  • 3,416
  • 2
  • 33
  • 52

1 Answers1

10

Keras has built-in common datasets and MNIST is one of them:

from keras.datasets import mnist

(x_train, y_train), (x_test, y_test) = mnist.load_data()

So if you have Keras on Colab, you should also have MNIST ready to go.

nuric
  • 11,027
  • 3
  • 27
  • 42