world#


class World(*, envs: Environments, policy: BasePolicy, train_collector: BaseCollector | None = None, test_collector: BaseCollector | None = None, logger: TLogger, persist_directory: str, restore_directory: str | None, trainer: BaseTrainer | None = None)[source]#

Bases: object

Container for instances and configuration items that are relevant to an experiment.

envs: Environments#
policy: BasePolicy#
train_collector: BaseCollector | None = None#
test_collector: BaseCollector | None = None#
logger: TLogger#
persist_directory: str#
restore_directory: str | None#
trainer: BaseTrainer | None = None#
persist_path(filename: str) str[source]#
restore_path(filename: str) str[source]#