ModelCheckpoint

class cl_gym.utils.callbacks.ModelCheckpoint(interval='task', name_prefix=None)[source]

Bases: cl_gym.utils.callbacks.base.ContinualCallback

Model Checkpoint callback. Saves the backbone (model) to disk at the end of every epoch or task (depending on the input settings).

on_after_training_epoch(trainer)[source]
on_after_training_task(trainer)[source]
on_before_fit(trainer)[source]