Tensorflowjs Easy weights loading

GO TO THE SECOND BOX AND TRAIN THE MODEL IF THIS IS YOUR FIRST TIME.
This is the xOr model with pre-saved weights loaded and used to predict the outcome. Expect close to 0, 1, 1, 0 for outputs.



json-upload: weights-upload:

...











This can create the weights used in the above example. Look at the console for more information about the Tensors. Increase the batches to get values close to 0, 1, 1, 0 for outputs.

Tensorflowjs version 0.11.0 just made it easierr to load and save models and weights


Batches

Local or Download file name DON'T CHANGE THIS FILE NAME WHEN SAVING TO COMPUTER AS IT NAMES THE WEIGHTS FILE RELATIVE PATH!

View file system saved files


...











Let's try loading the weights and JSON from a URL

LOAD URL


...











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!