TensorFlow.js Models


Models and layers are important building blocks in machine learning. For different machine learning tasks you must combine different types of layers into a model that can be trained with data to predict future values.

TensorFlow.js is supporting different types of models and different types of layers. A TensorFlow model is a neural network with one or more layers. TensorFlow.js

A JavaScript Library for Training and Deploying
Machine Learning Models
in the Browser


A Tensorflow Project
A Tensorflow project has this typical workflow:
  1. Collecting data,
  2. Creating a model,
  3. Adding layers to the model,
  1. Compiling the model,
  2. Training the model, and
  3. Using the model.
An Example of Tensorflow Projects
Suppose you knew a function that defined a strait line:
   Y = 1.2X + 5
Then you could calculate any y value with the JavaScript formula:

y = 1.2 * x + 5;

To demonstrate Tensorflow.js, we could train a Tensorflow.js model to predict Y values based on X inputs. The TensorFlow model does not know the function.

     




      As anyone who has experienced a hurricane knows,    
      Mother Nature (the natural world) can be a frightening force.