Get startedGet started for free

Training loop

Time to refresh your knowledge on training loops! Let's train a classifier to predict water potability. You will use the model called net, which you built in the previous lesson.

The training loop code has already been written but, unfortunately, all the code lines got mixed up! Can you sort them to recover the proper order of operations performed during training?

This exercise is part of the course

Intermediate Deep Learning with PyTorch

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise