As easy as I can make Tensorflowjs Keras Layers Examples using an xOr style Neural Network
One of the easiest Keras Layers is xOR. It has 4 fixed inputs 2 digit and 4 fixed one digit outputs.
This is a very simple xOr Neural Network using Tensorflowjs Layers
Have a look at the code. It would be very easy to add extra hidden layers to this Neural Network
The Original by Matt Cameron was written for NodeJS, his code is at Code
The expected output for xOr input is
[0,0] = ~ 0
[1,0] = ~ 1
[0,1] = ~ 1
[1,1] = ~ 0
...
Now lets try the above in a full Machine Learning Web App
Tensorflowjs Machine Learning Web App Template
As simple as possible template. Note that for simplicity this has minimal CSS