QDpy
Loading...
Searching...
No Matches
qdpy.rl.domino.DOMiNO Class Reference

Train a shared actor for distinct policies subject to a task reward floor. More...

Public Member Functions

 stats (self)
 multipliers (self)
 reward_floor (self)
 act (self, observation, skill, *, deterministic=True)
 Choose an action for one latent policy using the original observation.
 train (self, max_env_steps)
 Continue all policies on an additional environment-step budget.
 evaluate (self, *, episodes_per_skill=4, seed=1337)
 Audit deterministic policies under common, held-out reset seeds.

Detailed Description

Train a shared actor for distinct policies subject to a task reward floor.

Synchronous PPO variant of Diversity Optimization Maintaining Near Optimality.

Use one latent policy for reward alone and learn the remaining
policies with occupancy rewards and a sigmoid-bounded multiplier.
This implementation estimates average occupancy and extrinsic
reward from on-policy rollout blocks and trains PPO on their mixed
reward. It uses a single mixed-reward value baseline.

Feature receives (observation, action, info) per transition. Its
vector may encode one-hot state features or continuous features.
Pass reward_floor to set a fixed average reward per step. Otherwise
the floor is optimality_ratio times the reference policy's running
average reward. Use a fixed floor for negative reward scales.

Definition at line 75 of file domino.py.

Member Function Documentation

◆ act()

qdpy.rl.domino.DOMiNO.act ( self,
observation,
skill,
* ,
deterministic = True )

Choose an action for one latent policy using the original observation.

Decode an action for the requested skill in the native Gymnasium space.

Definition at line 182 of file domino.py.

◆ evaluate()

qdpy.rl.domino.DOMiNO.evaluate ( self,
* ,
episodes_per_skill = 4,
seed = 1337 )

Audit deterministic policies under common, held-out reset seeds.

Report return, features, and floor satisfaction without updating training.

Definition at line 204 of file domino.py.

◆ multipliers()

qdpy.rl.domino.DOMiNO.multipliers ( self)
Return the extrinsic reward weights, with the reference fixed at one.

Definition at line 141 of file domino.py.

◆ reward_floor()

qdpy.rl.domino.DOMiNO.reward_floor ( self)
Return the fixed floor or the current estimate from the reference policy.

Definition at line 146 of file domino.py.

◆ stats()

qdpy.rl.domino.DOMiNO.stats ( self)
Return cumulative training interactions and optimiser steps.

Definition at line 136 of file domino.py.

◆ train()

qdpy.rl.domino.DOMiNO.train ( self,
max_env_steps )

Continue all policies on an additional environment-step budget.

Collect synchronous rollout blocks and return cumulative training costs.

Definition at line 191 of file domino.py.


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