Skip to content

Instantly share code, notes, and snippets.

@cobym
cobym / mnist.py
Created December 12, 2015 09:18 — 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 = "."):