Skip to content

Hindsight policy gradients

License

Notifications You must be signed in to change notification settings

paulorauber/hpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hindsight policy gradients

This software supplements the paper "Hindsight policy gradients".

The implementation focuses on clarity and flexibility rather than computational efficiency.

Examples

Training an agent in a bit flipping environment (k = 8) using a weighted per-decision hindsight policy gradient estimator (HPG):

python3 hpg/scripts/run.py hpg/examples/flipbit8/flipbit8_bs2_hpg

Training an agent in a bit flipping environment (k = 8) using a goal-conditional policy gradient estimator (GCPG):

python3 hpg/scripts/run.py hpg/examples/flipbit8/flipbit8_bs2_gcpg

Combining the corresponding results into a single plot (see folder "results/flipbit8_bs2"):

mkdir -p results/flipbit8_bs2
cp -r hpg/examples/flipbit8/flipbit8_bs2_hpg hpg/examples/flipbit8/flipbit8_bs2_gcpg results/flipbit8_bs2
python3 hpg/scripts/analysis.py results/flipbit8_bs2

Dependencies

About

Hindsight policy gradients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages