So now lets make a keras layers Neural Network with both integer inputs and outputs
xTrainingData [1], [2], [3], [4]
yTrainingTarget [1], [3], [5], [7]
For this example I have put in a few HTML inputs to make it a bit more interesting. Later have a look at the full web App below.
Samples per batch :
, Epochs (# of batches to run) :
Test the data:
...
Click here to see the working HTML code.
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:
1, 2, 3, 4
yTrainingTarget:
1, 3, 5, 7
Compile or Load Model:
Compile, Train, Test:
Import / Export
Compile Model:
Train Model:
Epochs run:
Test Trained Model with New Data:
New Data:
5
Shape:
...
...
...
Click here to see the working HTML code.
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!