dataget.image.mnist

Downloads the MNIST dataset from Yann LeCun's website and loads it as numpy arrays.

import dataget

X_train, y_train, X_test, y_test = dataget.image.mnist().get()

Sample

mnist-sample

Format

type shape dtype
X_train np.array (60_000, 28, 28) uint8
y_train np.array (60_000,) uint8
X_test np.array (10_000, 28, 28) uint8
y_test np.array (10_000,) uint8

Info

  • Folder name: image_mnist
  • Size on disk: 53MB