Implementation of callbacks in training loop. Some of the code is from here, here and from fastbook. Code is used to understand how to use callbacks in training loop:
There is a simple simple example of training loop without callbacks
Example of training loop with callbacks
Example of learning rate finder with callbacks
Data is from fastbook MNIST example dataset.