Skip to content

MNIST classifier using autoencoders in TensorFlow 2 with Matplotlib visualizations

License

Notifications You must be signed in to change notification settings

mariovp/MnistAutoencoderClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MnistAutoencodersClassifier

MNIST dataset classification using autoencoders

This method consists in training a reconstruction autoencoder for each of the 10 classes in MNIST.

Then at inference time, the image is sent to the 10 autoencoders and the example is labeled according to the autoencoder with the smallest reconstruction error.

How to Run

Install TensorFlow 2.x and Matplotlib into your environment:

pip install tensorflow
pip install matplotlib

Then run:

python main.py

This repository contains the 10 trained models and should run in inference mode by default. If the models are deleted the script will retrain them automatically.

Examples

Digit 0 Digit 2 Digit 9

About

MNIST classifier using autoencoders in TensorFlow 2 with Matplotlib visualizations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages