Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.06 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.06 KB

lstm-mnist

Image classification using a RNN classifier(LSTM) with Keras.

Requirements

  • python3
  • tensorflow (>=1.4)
  • keras (>=2.1.1)
  • numpy

Train and evaluate

The classifier is trained on 55k samples and tested on 10k samples (The default split).

The ANN is made of one LSTM layer with 128 hidden units and one dense output layer of 10 units with softmax activation. The rmsprop optimizer is used with categorial_crossentropy as loss function.

Launch lstm_classifier.py to train and evaluate the classifier, you can dump a trained classifier and load it later.

python lstm_classifier.py

Ressources