This repository is the implementation of a handcrafted neural network model for classification of MNIST data.
mnist_data/t10k-images-idx3-ubyte.gzt10k-labels-idx1-ubyte.gztrain-images-idx3-ubyte.gztrain-labels-idx1-ubyte.gz
models/model_lr=0.001_hiddens=256_lambda2=1e-05.pkl...
plots/acc_Curve_lr=0.001_hiddens=256_lambda2=1e-05.jpgLoss_Curve_lr=0.001_hiddens=256_lambda2=1e-05.jpgweights_lr=0.001_hiddens=256_lambda2=1e-05.jpg
main.pymetrics.pyneural_network.pypreprocess.py
The code has been tested running under Python 3.7.0, with the following packages installed (along with their dependencies):
- numpy == 1.15.1
- matplotlib == 2.2.3
$ python main.py --mode=train --lr=0.001 --hiddens=256 --lambda2=0.00001
$ python main.py --mode=test --lr=0.001 --hiddens=256 --lambda2=0.00001
only if a model with the same hyperparameters are trained, it can be tested
the trained model will be saved in models/
and the plots will be saved in plots/