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:
- Collecting data,
- Creating a model,
- Adding layers to the model,
|
- Compiling the model,
- Training the model, and
- 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:
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.