The goal of this document is to explain the basic mechanism of the dataset in Chainer and how to prepare customized dataset that can work with Trainer.
See the official document for the full detail of the specifications.
In order to make the dataset be able to work with the Trainer, it must have two methods:
__getitem__
, which is used for indexing likedataset[i]
or slicing likedataset[i:j]
__len__
, which enables us to feed it tolen()