Skip to content
forked from hrpan/dae

Official repository for "Direct Advantage Estimation"

License

Notifications You must be signed in to change notification settings

tomorrorning/dae

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Direct Advantage Estimation

Official repository for "Direct Advantage Estimation"

Requirements

We recommend using Python 3.8 with venv. Please make sure pip is up to date by running:

pip install -U pip

Install requirements:

pip install -r requirements.txt

Training

To reproduce the results, run the following command:

python train.py --algo {algo} --hparam_file {hyperparameter_file} --envs {env} --threads {threads}

--algo: PPO (GAE) or CustomPPO (DAE)

--hparam_file: See ./params/ for the hyperparameters used in the paper, the files are named by {algo}_{network}.yml

--envs: Environment to train. For example, Pong, Breakout, etc. For MinAtar environments, please add the suffix -MinAtar-v0. (e.g., Breakout-MinAtar-v0)

Optional arguments

--threads: Number of parallel threads for asynchronous environment steps

--logging: Save logs in ./logs/{env}/

--save_model: Save the trained model to ./logs/{env}/

Viewing logs

To view the tensorboard logs, run

python -m tensorboard --logdir ./logs/

and open the displayed URL in a browser.

How to cite

Please use the following BibTex entry.

@article{pan2022direct,
  title={Direct advantage estimation},
  author={Pan, Hsiao-Ru and G{\"u}rtler, Nico and Neitz, Alexander and Sch{\"o}lkopf, Bernhard},
  journal={Advances in Neural Information Processing Systems},
  volume={35},
  pages={11869--11880},
  year={2022}
}

About

Official repository for "Direct Advantage Estimation"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%