run_basic¶
- class xuance.engine.run_basic.RunnerBase(config, envs=None, agent=None, manage_resources=None)[source]¶
Bases:
ABCAbstract base class for all engine in XuanCe.
RunnerBase defines the common interface and shared infrastructure for all concrete engine (e.g., DRLRunner, MARLRunner).
- A runner is responsible for experiment orchestration, including:
Environment lifecycle management.
Training / testing / benchmarking workflows.
Resource ownership and cleanup semantics.
Rank-aware logging in distributed settings.
Notes
Algorithm-specific logic must remain in the Agent.
Subclasses must implement the abstract methods declared here.