seungeunrho / minimalRL

Implementations of basic RL algorithms with minimal lines of codes! (pytorch based)
MIT License
2.84k stars 457 forks source link

Remove redundant while loop break in dqn.py #58

Open ginoperrotta opened 2 years ago

ginoperrotta commented 2 years ago

The training loop in dqn.py has both while not done and if done: break. This is harmless, but redundant. Given this repo's focus on minimalism, though, I thought the break statement should be removed.