Why do agents trained by the reinforcement learning PPO algorithm get different results each time they load?

7 次查看(过去 30 天)
In the process of reinforcement learning, a problem will be encountered. During the training process, an effective agent will appear. At this time, the training will be finished in advance, but the result of the saved agent running out will be worse

回答(1 个)

Shivansh
Shivansh 2024-8-18
Hello Ye,
The behaviour shown by the agents trained by the reinforcement learning PPO algorithm suggests there might be some randomness involved in the environment. Since, the performance worsens for saved agents, it is also possible that the agent might be overfitted on certain episodes while training and the performance might not be same for other episodes. Try to remove any stochasticity in the model using deterministic seeds. You can also try to evaluate the model on various episodes to get a better understanding of the issue.
If the issue still remains unclear, share more information regarding the model and the environment.
I hope it helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by