Recap
Explore core PyTorch training techniques, from creating mini-batch training loops and validation steps to using Dataset and DataLoader classes. Learn essential practices such as model evaluation modes, disabling gradients during validation, logging with TensorBoard, and saving/loading model checkpoints to build effective and manageable models.
We'll cover the following...
We'll cover the following...
General overview
We have covered a lot of ground in this chapter:
-
Writing a higher-order function that builds functions to perform training steps.
-
Understanding PyTorch’s
DatasetandTensorDatasetclasses, implementing its__init__,__get_item__, and__len__methods. -
Using PyTorch’s
DataLoaderclass ...