This document introduces Chainer's new trainer and dataset abstraction features which provide a standardized way to implement training loops and access datasets. The key aspects are:
- Trainer handles the overall training loop and allows extensions to customize checkpoints, logging, evaluation etc.
- Updater handles fetching mini-batches and model optimization within each loop.
- Iterators handle accessing datasets and returning mini-batches.
- Extensions can be added to the trainer for tasks like evaluation, visualization, and saving snapshots.
This abstraction makes implementing training easier and more customizable while still allowing manual control when needed. Common iterators, updaters, and extensions are provided to cover most use cases.
Related topics: