er#
This module implements the simplest form of rehearsal training: Experience Replay. It maintains a buffer of previously seen examples and uses them to augment the current batch during training.
- Example usage:
model = Er(backbone, loss, args, transform) loss = model.observe(inputs, labels, not_aug_inputs, epoch)
Classes
- class models.er.Er(backbone, loss, args, transform)[source]#
Bases:
ContinualModel