Skip to content

About

Small Keras dense neural network experiment on the MNIST handwritten digits dataset (2021)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Weedharm: MNIST digit classifier

A small early experiment (2021) in training a fully connected neural network with Keras on the MNIST handwritten digits dataset. The script loads MNIST, shows a few sample images, flattens each 28x28 image into a 784-dim vector, trains a small dense network for 5 epochs with RMSprop and reports test-set accuracy.

Tech stack

Python, Keras (TensorFlow backend), NumPy, Matplotlib

Repository structure

dnn/dnn.py         MNIST loading, preprocessing, model definition, training and evaluation
requirements.txt   Python dependencies

Getting started

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python dnn/dnn.py

The MNIST dataset is downloaded automatically by keras.datasets.mnist on first run. Training takes well under a minute on a CPU.

License

MIT

About

Small Keras dense neural network experiment on the MNIST handwritten digits dataset (2021)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages