Also check out same GUI
demo with SVM here.


Also check out same GUI
demo with Random Forest here.

Neural Networks demo in Javascript

Find code (soon) on Github
Find me on Twitter @karpathy

mouse click: add red data point
shift + mouse click: add green data point
'r': re-initialize weights to random
's': shock the weights (change randomly a bit)
'q': change architecture (number of neurons, layers of neurons)

Browser not supported for Canvas. Get a real browser.

The network above is by default a 2-10-10-1 Neural Network.
It has 2 inputs (x and y coordinates), 2 layers of 10 hidden neurons each, and one output neuron that activates for green class.

Note, this demo is depractated in favor of much better and recent demos over at convnetjs.com.