ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

High reward then converged to low reward

Open r-lipton opened this issue 8 years ago • 4 comments

Hello,

I am trying to train an agent learning only from pixels (using only observation and no state, the actions space is discrete). However, I have a little problem, is it normal that the agent achieves high reward at the beginning, and then if I let it train a long time, it converged to a lower reward? A simple solution would be to stop the training earlier, but is there a solution that does not require a manual check? Maybe learning rate decay? tensorboard

Thanks!

r-lipton avatar Feb 19 '18 08:02 r-lipton

Maybe I have an explanation about that. It seems like the observation becomes a black image after some time. For info, I train the agent on a remote server using these instructions

capture

When I restart the Xorg process, the observation returns the correct image.

r-lipton avatar Feb 20 '18 09:02 r-lipton

Can you try on your local machine to see if the agent learns differently ?

vincentpierre avatar Feb 24 '18 16:02 vincentpierre

I did not try on my local computer, but I did save every frame for a while, and there was no problem. But the convergence was not good using the Unity PPO code (maybe wrong hyperparameters). I tried an implementation of Atari DQN using default parameters and it worked :smiley:

r-lipton avatar Feb 26 '18 08:02 r-lipton

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 03 '20 16:01 lock[bot]