CM
cs;

Calc ML 

pythontensorflow

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.

  1. Straight tensorflow multi-layered perceptron (MLP).
  2. Keras multi-layered perceptron (MLP).
  3. Keras Long Short-Term Memory (LSTM).
  4. 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.