Keras-based MLP for MNIST classification