Skip to content

Instantly share code, notes, and snippets.

View cwcai633's full-sized avatar

Chenwei Cai cwcai633

  • Google
  • MTV
View GitHub Profile
@cwcai633
cwcai633 / mnist.py
Created January 11, 2016 02:57 — 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 = "."):