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!
Asked
Active
Viewed 1.2k times
5
-
1What have you tried? Keras has built-in functions to load the MNIST dataset. – Dr. Snoopy Jan 13 '19 at 16:31
-
@MatiasValdenegro Wow, thanks, I had no idea about that! – Alex V Jan 13 '19 at 16:32
1 Answers
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
-
Thanks, this is perfect! Pardon my ignorance, wasn't expecting it to be so convenient! – Alex V Jan 13 '19 at 16:36