(Figure from Abhishek Paudel [5], linked below)
This template provides a quick way to experiment with neural network architectures on the classic 'MNIST database of handwritten digits' using PyTorch. Library dependencies and dataset parsing are handled for you.
Prerequisites on your local machine are docker
, make
, wget
, gunzip
.
- Clone this repo and
cd
into it. - In
mnist.py
, modify the classMnistModel
and hyperparameters. You can usepytorch.py
as an example. - In console, run
make runmnist
to train and test the network. It will printCorrectly predicted __%
to tell you how the network performed. - Repeat from step 2!
- (dataset) MNIST database of handwritten digits
- (videos) 3Blue1Brown: Neural Networks
- (tutorial) Linear Regression with PyTorch
- (tutorial) PyTorch basics
- (blog) Abhishek Paudel: Pen Stroke Sequence Feature Extraction from MNIST Digits
- (repo) https://github.com/anibali/docker-pytorch