MNIST demo (adapted from Karpathy)

Description

This demo trains a Convolutional Neural Network on the MNIST digits dataset in your browser, with nothing but Javascript. The dataset is fairly easy and one should expect to get somewhere around 99% accuracy within few minutes. Karpathy used this python script to parse the original files into batches of images that can be easily loaded into page DOM with img tags. Due to tainted canvas error in JS, I used the image source here and minimal code edits are done in images-demo.js in loading-image function.

Training Stats

Learning rate:
Momentum:
Batch size:
Weight decay:


Loss:

Test an image from your computer:

Instantiate a Network and Trainer


Network Visualization

Example predictions on Test set