Skip to content
This is the code for "Convolutional Neural Networks - The Math of Intelligence (Week 4)" By Siraj Raval on Youtube
Branch: master
Clone or download
Latest commit 28fe108 Jul 10, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
Procfile Update Jul 10, 2017
config.pyc Add files via upload Jul 10, 2017
dataset.txt Add files via upload Jul 10, 2017
requirements.txt Add files via upload Jul 10, 2017

Convolutional Neural Network


This is the code for this video on Youtube by Siraj Raval as part of The Math of Intelligence course. A convolutional neural network implemented in pure numpy. It uses a MNIST-like dataset with about 30 alphanumeric symbols. The author trained a deep convolutional network using Keras and saved the weights using python's pickle utility. Only the the forward propagation code is rewritten in pure numpy (as opposed to Theano or Tensorflow as in Keras). Which lets us run the network as a demo via heroku. For backpropagation in numpy for a convnet see this

recognized_o.png recognized_q.png

Live web app is here: Website


Dependencies are packaged in the flask folder, so this app does not have any external depencies. Run pip install -r requirements.txt to install them.

Install pip here.


to start the web app run python . To start the notebook run jupyter notebook in terminal.

Install jupyter here.


Credits for this code go to greydanus. I've merely created a wrapper to get people started.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.