bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/AI

AI

Example 2

Example 2 focused on TensorFlow Example 2 and related concepts.

Lesson 1visual

TensorFlow Example 2

Input Data Reduce Loss Explained The model above performs 4 important steps: It Collects Data It Prepares Data It Trains a Model It Evaluates the Model In the next chapters you will learn how to prog…

2 min
Read lesson →
Lesson 2

Example 2 Data

Example 2 uses the same source code as Example 1. But, because another dataset is used, the code must collect other data. Data Collection The data used in Example 2, is a list of house objects: { "Av…

2 min
Read lesson →
Lesson 3

Example 2 Model

Shuffle Data Always shuffle data before training. When a model is trained, the data is divided into small sets (batches). Each batch is then fed to the model. Shuffling is important to prevent the mo…

2 min
Read lesson →
Lesson 4visual

Example 2 Training

Training Function async function trainModel(model, inputs, labels, surface) { const batchSize = 25; const epochs = 100; const callbacks = tfvis.show.fitCallbacks(surface, ['loss'], {callbacks:['onEpo…

2 min
Read lesson →