QDpy
Loading...
Searching...
No Matches
qdpy.rl.masqd.TeamPolicy Class Reference

A shared observation encoder and a distinct deterministic head per team role. More...

Inheritance diagram for qdpy.rl.masqd.TeamPolicy:
qdpy.rl.policy.ContinuousPolicy qdpy.rl.policy._FlatPolicy qdpy.rl.madecm.MADECMPolicy

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.

Detailed Description

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.

Definition at line 49 of file masqd.py.

Member Function Documentation

◆ load()

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.

Definition at line 79 of file masqd.py.

◆ save()

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.

Definition at line 70 of file masqd.py.


The documentation for this class was generated from the following file: