High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG)
5.54k
stars
631
forks
source link
Seed issue with `dqn.py` and others #171
Closed
vwxyzjn closed 2 years ago
Problem Description
Currently,
dqn.py
and other scripts incorrectly set the environment seed to be always 0https://github.com/vwxyzjn/cleanrl/blob/a1b5b71134d7a576992488d7f42cb75f68117243/cleanrl/dqn.py#L69-L81 https://github.com/vwxyzjn/cleanrl/blob/a1b5b71134d7a576992488d7f42cb75f68117243/cleanrl/dqn.py#L135
The correct implementation should be