Skip to content

Instantly share code, notes, and snippets.

@namckim1
namckim1 / mnist.py
Created February 9, 2017 09:40 — 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 = "."):