Skip to content

Instantly share code, notes, and snippets.

@Splines
Last active October 3, 2021 00:21
Show Gist options
  • Save Splines/cabf11ed84a91ec090ccd618aef111f5 to your computer and use it in GitHub Desktop.
Save Splines/cabf11ed84a91ec090ccd618aef111f5 to your computer and use it in GitHub Desktop.
Open the MNIST binary files
import numpy as np
from matplotlib import pyplot as plt
with open('./mnist/train-images.idx3-ubyte', 'rb') as images_file,\
open('./mnist/train-labels.idx1-ubyte', 'rb') as labels_file:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment