Skip to content

Instantly share code, notes, and snippets.

View KayneWest's full-sized avatar

Matt Krzus KayneWest

View GitHub Profile
@syhw
syhw / dnn.py
Last active April 9, 2026 02:36
A simple deep neural network with or w/o dropout in one file.
"""
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