Lesson 5 of 186 min

The training loop

Training repeats five lines on batch after batch, epoch after epoch: work out the scores and the loss, clear the old slopes, find the new ones, and step; and after each epoch, check pictures the network never learns from.

After this lesson you can write forward, loss, backward and step in PyTorch.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 2: Train the digit reader, which comes next.

Facts last checked on .