Skip to content

Instantly share code, notes, and snippets.

@NicolaBernini
Created January 30, 2019 17:33
Show Gist options
  • Save NicolaBernini/2f477f20ae0979c0f19c5d3510ff031c to your computer and use it in GitHub Desktop.
Save NicolaBernini/2f477f20ae0979c0f19c5d3510ff031c to your computer and use it in GitHub Desktop.
MNIST Access

Overview

Access to MNIST via Tensorflow and Keras API

import tensorflow as tf
from matplotlib import pyplot as plt
dataset = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = dataset.load_data()
# Check it works by plotting a number
plt.imshow(x_train[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment