|
QDpy
|
Bounded stochastic continuous actor conditioned on a desired behavior. More...
Public Member Functions | |
| skill_bounds (self) | |
| config (self) | |
| device (self) | |
| act (self, observation, skill, deterministic=True) | |
| Select a deterministic or sampled action at a desired skill. | |
| save (self, path) | |
| Save the actor, physical bounds, and architecture to an NPZ file. | |
| load (cls, path, *, device="cpu", seed=0) | |
| Restore a conditioned actor without an environment or feature function. | |
Bounded stochastic continuous actor conditioned on a desired behavior.
Combine a Box observation and a desired skill to select an action. The actor concatenates the flattened observation with the skill mapped into [-1, 1]. The saved actor requires only an observation and a skill in physical units. It can be loaded without the environment or trainer. :param observation_space: Fixed-shape numeric Gymnasium Box. :param action_space: Finite floating-point Gymnasium Box. :param skill_bounds: Ordered physical (low, high) pairs for skill coordinates. :param config: Optional actor architecture as a PolicyConfig. :param seed: Nonnegative initialization and inference seed. :param device: Torch CPU or CUDA device.
| qdpy.rl.qdac.SkillConditionedPolicy.act | ( | self, | |
| observation, | |||
| skill, | |||
| deterministic = True ) |
| qdpy.rl.qdac.SkillConditionedPolicy.config | ( | self | ) |
| qdpy.rl.qdac.SkillConditionedPolicy.device | ( | self | ) |
| qdpy.rl.qdac.SkillConditionedPolicy.load | ( | cls, | |
| path, | |||
| * | , | ||
| device = "cpu", | |||
| seed = 0 ) |
| qdpy.rl.qdac.SkillConditionedPolicy.save | ( | self, | |
| path ) |
| qdpy.rl.qdac.SkillConditionedPolicy.skill_bounds | ( | self | ) |