Skip to content

Instantly share code, notes, and snippets.

View shm007g's full-sized avatar
🎯
Focusing

Szymon shm007g

🎯
Focusing
  • Neutron Research Center
View GitHub Profile
@shm007g
shm007g / mnist.py
Created November 22, 2018 08:27 — 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 = os.path.join(os.path.dirname(__file__), 'mnist')):