TensorFlow.js: Addition RNN

Train a model to learn addition by example

Description

This example trains a Recurrent Neural Network to do addition without explicitly defining the addition operator. Instead we feed it examples of sums and let it learn from that.

Given a string like 3 + 4, it will learn to output a number like 7.

This example generates it's own training data programatically.

Instructions

Click the "Train Model" to start the model training button. You can edit the parameters used to train the model as well.

Digits:
Training Size:
RNN Type:
RNN Layers:
RNN Hidden Layer Size:
Batch Size:
Train Iterations:
# of test examples:

Training Progress

Test Examples