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

Pre-Set Values:

Learning Rate:
Samples per batch:
Epochs (# of batches to run) :
Validation Split :



Data:

xTrainingData:
yTrainingTarget:



Compile or Load Model:

Compile, Train, Test: Import / Export
Compile Model:
Train Model: Epochs run:
Test Trained Model with New Data: New Data:Shape:



...

...













This Github, ... this Github Website Version, ... this Hosted Website Version, ... Tensorflowjs

By Jeremy Ellis
Twitter@rocksetta
Website http://rocksetta.com
Use at your own risk!