Skip to content

Instantly share code, notes, and snippets.

View chriskamphuis's full-sized avatar

Chris Kamphuis chriskamphuis

View GitHub Profile
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 = "."):