Overview of Python APIs in ML-Agents
developML-Agents provides several Python APIs to control and interact with Unity environments. The choice of API depends on your reinforcement learning (RL) workflow requirements:
- Python Gym API: Provides an OpenAI Gym-compatible interface, ideal for standard RL workflows and using existing Gym-based algorithms.
- Python PettingZoo API: Provides a multi-agent environment interface compatible with PettingZoo, suitable for multi-agent reinforcement learning (MARL).
- Python Low-Level API: Offers direct low-level access for custom training loops and advanced research use cases where higher-level abstractions are too restrictive.
- On/Off Policy Trainer: Specialized documentation for implementing specific on-policy or off-policy training methods.
- Python Optimizer: Documentation regarding the optimizers used within the training algorithms.