I am studying neural networks and was wondering if arithmetic be learned. Apparently it can. I tried a few different methods with varying results.
Different Methods
I’m trying various methods to achieve a solution.
- Straight tensorflow multi-layered perceptron (MLP).
- Keras multi-layered perceptron (MLP).
- Keras Long Short-Term Memory (LSTM).
- Keras classifier with one hot encoding. This solution seems to work best and is the most flexible. Checkout a deployed implementation created with react.js and tensorflow.js.
I referenced and copied much of the article Learn to Add Numbers with an Encoder-Decoder LSTM Recurrent Neural Network by Jason Brownlee.