An MNIST Demo Using TensorFlow.js
A simple TensorFlow.js implementation of MNIST
Here is a simple TensorFlow.js example that loads the MNIST dataset, trains a model, and allows you to draw digits to see how well the model predicts them. Once the model is trained, you can draw a digit in the box below and it will predict what digit you drew.
Also, once the model is trained, feel free to hide the sidebar (top right) to get a better view of the canvas.
The model is pretty small in order to run in the browser, so it is not accurate all the time. I've also noticed that the model has a couple of weird quirks, like you have to draw some of the digits in a specific way for it to recognize them correctly.
I suspect this has to do with the fact that the input box here does not output images with the same style as the MNIST dataset, so it may not be able to recognize the digits as well as it could from the actual MNIST dataset, which is partially an issue with the model not being able to generalize well.