|
QDpy
|
A shared observation encoder and a distinct deterministic head per team role. More...
Public Member Functions | |
| save (self, path) | |
| Write a versioned numeric checkpoint of the shared encoder and role heads. | |
| load (cls, path, *, device="cpu") | |
| Load a team independently of its original simulator and trainer. | |
| Public Member Functions inherited from qdpy.rl.policy._FlatPolicy | |
| act (self, observation, deterministic=True) | |
| Choose a deterministic action or sample from the actor. | |
A shared observation encoder and a distinct deterministic head per team role.
Act on a joint Box observation in fixed agent order. The observation and action Boxes each start with the same agent axis. All agents have the same number of observation and action coordinates. Action bounds may differ by agent. Hidden layers are shared and the final affine action head is specific to each role.
| qdpy.rl.masqd.TeamPolicy.load | ( | cls, | |
| path, | |||
| * | , | ||
| device = "cpu" ) |
Load a team independently of its original simulator and trainer.
Return a deployable deterministic TeamPolicy.
Reimplemented from qdpy.rl.policy.ContinuousPolicy.
| qdpy.rl.masqd.TeamPolicy.save | ( | self, | |
| path ) |
Write a versioned numeric checkpoint of the shared encoder and role heads.
Save the team with its joint observation and action layouts.
Reimplemented from qdpy.rl.policy.ContinuousPolicy.