world#
Source code: tianshou/highlevel/world.py
- 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#