I have originally taken the code from here https://github.com/f00-/mnist-lenet-keras.git
install keras, matplotlib, cv2
The mnist.py trains mnist, lenet.py are the architectures, the analyse_acc.py analyse the csv of the accuracy (which in my case was taken from tensorboard
python mnist.py