PacktPublishing / Deep-Reinforcement-Learning-Hands-On

Hands-on Deep Reinforcement Learning, published by Packt
MIT License
2.83k stars 1.28k forks source link

Chapter06/02_dqn_pong.py can't learn properly after modified the ScaleFloatFrame #25

Closed liuyuezhang closed 5 years ago

liuyuezhang commented 5 years ago

Hi, I am a reader of your book and recently met a very weird issue. I tried to modify your ScaledFloatFrame preprocessing, the only two modifications I made are:

Any ideas of why such things happened? I just really don't know where I made the mistake...

Shmuma commented 5 years ago

If it was the only changes, it should work. Have you tried to rerun it several times? Sometimes (~10% or something) it fails to converge just because of an unlucky seed.