|
| | reset (self) |
| | Drop the pending skill at an episode boundary.
|
| | select_skill (self, observation, deterministic=True) |
| | Select one bounded code without changing the held skill.
|
| | act_skill (self, observation, skill, deterministic=True) |
| | Execute a caller-selected code independently of the high-level actor.
|
| | act (self, observation, deterministic=True) |
| | Choose or continue a skill and decode one physical action.
|
| | save (self, path) |
| | Export both actors and the skill horizon in one numeric file.
|
| | load (cls, path, *, device="cpu", seed=0) |
| | Restore the two actors without an environment or training data.
|
Two portable inference networks and a fixed skill duration.
Compose primitive actions from a state-to-skill policy and a frozen decoder.
Call reset() when the simulator resets. Between resets, act() chooses
a code every skill_horizon calls and holds it fixed for the decoder.
Each inference session needs its own policy instance and episode state.
Definition at line 75 of file qdos.py.