项目
在 GitHub 查看
anita-hu/TF2-RL
关于
Reinforcement learning algorithms implemented for Tensorflow 2.0+ [DQN, DDPG, AE-DDPG, SAC, PPO, Primal-Dual DDPG]
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Reinforcement Learning Agents
Implemented for Tensorflow 2.0+
New Updates!
- DDPG with prioritized replay
- Primal-Dual DDPG for CMDP
Future Plans
- SAC Discrete
Usage
- Install dependancies imported (my tf2 conda env as reference)
- Each file contains example code that runs training on CartPole env
- Training:
python3 TF2_DDPG_LSTM.py - Tensorboard:
tensorboard --logdir=DDPG/logs
Hyperparameter tuning
- Install hyperopt https://github.com/hyperopt/hyperopt
- Optional: switch agent used and configure param space in
hyperparam_tune.py - Run:
python3 hyperparam_tune.py
Agents
Agents tested using CartPole env.
| Name | On/off policy | Model | Action space support |
|---|---|---|---|
| DQN | off-policy | Dense, LSTM | discrete |
| DDPG | off-policy | Dense, LSTM | discrete, continuous |
| AE-DDPG | off-policy | Dense | discrete, continuous |
| SAC:bug: | off-policy | Dense | continuous |
| PPO | on-policy | Dense | discrete, continuous |
Contrained MDP
| Name | On/off policy | Model | Action space support |
|---|---|---|---|
| Primal-Dual DDPG | off-policy | Dense | discrete, continuous |
Models
Models used to generate the demos are included in the repo, you can also find q value, reward and/or loss graphs
Demos
| DQN Basic, time step = 4, 500 reward | DQN LSTM, time step = 4, 500 reward |
|---|---|
![]() |
![]() |
| DDPG Basic, 500 reward | DDPG LSTM, time step = 5, 500 reward |
|---|---|
![]() |
![]() |
| AE-DDPG Basic, 500 reward | PPO Basic, 500 reward |
|---|---|
![]() |
![]() |
探索相关项目
加载中…





