Lesson 75
MADDPG
Train each agent with a critic that sees every agent's action, then act using only local information. One example is on this page.
Intermediate12 min
What You Will Learn
- Idea
- Example
- When to use it
Idea
Multi-agent DDPG gives each agent an actor that sees only its own observation. The critic for training sees the actions of all agents, so the environment looks less random during the update. At execution time the critic is dropped and each actor runs on local information.
Example
own_action = 0.5
other_action = -0.2
central_q = 0.3 * own_action + 0.3 * other_action
print(f"central critic: {central_q:.2f}")Output:
central critic: 0.09When to use it
- Use it when several agents take continuous actions and each one changes the other's outcome.
- The critic score above depends on both actions. The actor that executes does not need the other action as input.
- Centralized training with decentralized execution is the pattern to remember.
Loading playground…