2.1 Example 1: Predicting download duration with Tensorflow.js
Cover tensors, modeling, and optimization what they are and how thework and how to use them appropriately.
Below are the steps we’ll take in order to accept a file size and output an accurate prediction of download time.
This will be an array.
const training_data = [x₁, x₂ ... xₓ]
Data representations must be tensors.
Build a simple linear model that is Keras compatible with the Tensorflow.js layers.
Fit the model to the training
Predict time form file size.