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

Train a diverse policy ensemble with DualDICE and a Jensen-Shannon Stein kernel. More...

Go to the source code of this file.

Classes

class  qdpy.rl.qd_dualdice.QDDualDICEConfig
 Configure the two-timescale occupancy estimator and policy ensemble. More...
class  qdpy.rl.qd_dualdice.QDDualDICEStats
 Count simulator work independently of density estimation and actor updates. More...
class  qdpy.rl.qd_dualdice._DICETrajectory
class  qdpy.rl.qd_dualdice._OccupancyPanel
class  qdpy.rl.qd_dualdice._DualDICEPair
class  qdpy.rl.qd_dualdice.QDDualDICEJS
 Train exportable Gymnasium policies using the QD-DualDICE-JS population update. More...

Namespaces

namespace  qdpy

Functions

 qdpy.rl.qd_dualdice._discounted_credit (rewards, gamma, tail=0.)

Detailed Description

Train a diverse policy ensemble with DualDICE and a Jensen-Shannon Stein kernel.

See also
https://proceedings.mlr.press/v155/gangwani21a.html
https://proceedings.mlr.press/v155/gangwani21a/gangwani21a-supp.pdf

Definition in file qd_dualdice.py.

Function Documentation

◆ _discounted_credit()

qdpy.rl.qd_dualdice._discounted_credit ( rewards,
gamma,
tail = 0. )
protected
Credit each action with its contribution to normalized discounted return.

Definition at line 181 of file qd_dualdice.py.