ContinualTrainer

class cl_gym.trainer.ContinualTrainer(algorithm: cl_gym.algorithms.base.ContinualAlgorithm, params: dict, callbacks=typing.Iterable[cl_gym.utils.callbacks.base.ContinualCallback], logger: Optional[cl_gym.utils.loggers.Logger] = None)[source]

Bases: cl_gym.trainer.state_manager.TrainerStateManagerMixin, cl_gym.trainer.callback_hooks.TrainerCallbackHookMixin

Base class for Trainer component. Basically, orchestrates the training by implementing a state-machine. For further info, please see the guides on how the trainer works.

fit()[source]
run()[source]
setup()[source]
teardown()[source]
train_algorithm_on_task(task: int)[source]
validate_algorithm_on_task(task: int, validate_on_train: bool = False)Dict[str, float][source]