DDPG Not getting any reward? Using the example from MathWorks
Afficher commentaires plus anciens
I am using the water pump example from Mathworks for the DDPG Reinforcement example, but I changed the pump model slightly and I am not getting any reward when I run the program, it is always zero. I changed the reward to always be 10 just to see if maybe it just wasnt learning, but it still only shows a reward of 0. Does anyone have any ideas? This is my first post so sorry if I am not submitting it correctly. Thanks!

2 commentaires
Walter Roberson
le 27 Oct 2020
It would help if you could attach your files so people could replicate the problem
Jun
le 27 Oct 2020
Réponses (1)
Emmanouil Tzorakoleftherakis
le 11 Nov 2020
0 votes
Hi Jun,
The IsDone input to the agent block is always true, so all episodes end prematurely. This is why you don't see any change in the reward. Change the conditions that set the IsDone flag to be true or set it to be false and the training will resume.
Catégories
En savoir plus sur Environments dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!