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

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:



Multiplier for the Random Generate Note: "Samples per Batch" above effects the generator




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!