QDpy
Loading...
Searching...
No Matches
brpg.py File Reference

Behavior-regulated policy gradients for continuous MAP-Elites. More...

Go to the source code of this file.

Classes

class  qdpy.rl.brpg.BRPGStats
 Count behavior-estimator steps in addition to reward and actor updates. More...
class  qdpy.rl.brpg._BehaviorReplay
class  qdpy.rl.brpg._BRPGLearner
class  qdpy.rl.brpg.BRPGMAPElites
 Evolve continuous actors using separate reward and behavior gradients. More...

Namespaces

namespace  qdpy

Functions

 qdpy.rl.brpg._behavior_target (features, terminated, predicted, gamma)
 qdpy.rl.brpg._combine_gradients (reward, behavior)

Detailed Description

Behavior-regulated policy gradients for continuous MAP-Elites.

Definition in file brpg.py.

Function Documentation

◆ _behavior_target()

qdpy.rl.brpg._behavior_target ( features,
terminated,
predicted,
gamma )
protected
Bootstrap normalized successor features only on nonterminal transitions.

Definition at line 73 of file brpg.py.

◆ _combine_gradients()

qdpy.rl.brpg._combine_gradients ( reward,
behavior )
protected
Remove the part of the reward-loss gradient opposing behavior compliance.

Definition at line 78 of file brpg.py.