Skip to content

Instantly share code, notes, and snippets.

View lzamparo's full-sized avatar

Lee Zamparo lzamparo

View GitHub Profile
@lzamparo
lzamparo / dnn.py
Last active August 29, 2015 14:14 — forked from syhw/dnn.py
"""
A deep neural network with or w/o dropout in one file.
License: Do What The Fuck You Want to Public License http://www.wtfpl.net/
"""
import numpy, theano, sys, math
from theano import tensor as T
from theano import shared
from theano.tensor.shared_randomstreams import RandomStreams