QDpy
Loading...
Searching...
No Matches
qdpy.rl.mome_p2c.PreferenceConditionedPolicy Class Reference

A portable continuous actor conditioned on a simplex of objective weights. More...

Inheritance diagram for qdpy.rl.mome_p2c.PreferenceConditionedPolicy:
qdpy.rl.descriptor_policy.DescriptorConditionedPolicy

Public Member Functions

 act (self, observation, preference)
 Act using the provided relative objective weights.
 specialize (self, preference, *, device=None)
 Fold a fixed preference into a standalone continuous actor.
Public Member Functions inherited from qdpy.rl.descriptor_policy.DescriptorConditionedPolicy
 descriptor_domain (self)
 save (self, path)
 Export the conditioned actor and descriptor normalization bounds.
 load (cls, path, *, device="cpu")
 Rebuild a conditioned inference policy from its saved NPZ.

Detailed Description

A portable continuous actor conditioned on a simplex of objective weights.

Use nonnegative preferences summing to one to choose an objective trade-off.

Definition at line 39 of file mome_p2c.py.

Member Function Documentation

◆ act()

qdpy.rl.mome_p2c.PreferenceConditionedPolicy.act ( self,
observation,
preference )

Act using the provided relative objective weights.

Return an action in the physical action-space units.

Reimplemented from qdpy.rl.descriptor_policy.DescriptorConditionedPolicy.

Definition at line 52 of file mome_p2c.py.

◆ specialize()

qdpy.rl.mome_p2c.PreferenceConditionedPolicy.specialize ( self,
preference,
* ,
device = None )

Fold a fixed preference into a standalone continuous actor.

Return an independent unconditioned actor for one preference.

Reimplemented from qdpy.rl.descriptor_policy.DescriptorConditionedPolicy.

Definition at line 57 of file mome_p2c.py.


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