As easy as I can make Tensorflowjswith Machine2Learn
Now lets try the above in a full Machine Learning Web App using
https://www.machine2learn.com/deep-learning-model-generator/
Click the "Load URL" button to load the generated JSON file
https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/machine2learn/m2l03.json
Then click the green buttons (Prep, Compile, Train) and finally the "Test/Predict" button.
Note: Do not click the "Define Model" button as that will run a predefined model not the generated model.
The default predict of 5.32 shoud get a response of about 13.64
Tensorflowjs Machine Learning Web App Template
As simple as possible template. Note that for simplicity this has minimal CSS
Data:
xTrainingData:
1.20, 2.10, 3.40, 4.20
yTrainingTarget:
5.40, 7.20, 9.80, 11.40
Pre-Set Values to Train Data:
Learning Rate:
Samples per batch:
Epochs: (# of batches to run)
Validation Split :
Compile or Load Model:
Prep Data
Import / Export
Compile Model:
Train Model:
Epochs run:
Test Trained Model with New Data:
New Data:
5.32
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!