Skip to content

Instantly share code, notes, and snippets.

@malorean
malorean / mnist.py
Last active November 11, 2017 00:17 — forked from akesling/mnist.py
import os
import struct
import numpy as np
"""
Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py
which is GPL licensed.
"""
def read(dataset = "training", path = "."):