As easy as I can make Tensorflowjs Keras Layers Examples Using Floating Point numbers (Decimals)
Now lets try decimal (float) inputs and outputs.
For every X value we train the Neural Network on y = 2X + 3 (or any other equation for that matter)
I have made the Keras model.fit a bit simpler than the Web App below. This model has no gradceful exit Class, but is easier to understand.
For this example we will test the data on x = 5.32 which should provide a y close to 13.64
For more flexible testing see the web App below
...
Now lets try the above in a full Machine Learning Web App
...
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!