Reinforcement learning unable to dupilcapte the best reward i had during training
1 view (last 30 days)
Show older comments
I use matlab RL toolbox to train a model and I set following rltrainingoptions:
op = rlTraingOptions('StopTrainingCriteria','EpisodeReward','StopTrainingValue',100);
the training process stops when the episodeReawrd>100, however when i used the trained agent to simulate, the episode reward is much lower than 100. Does anybody know why? The other condition is exactly the same.
0 Comments
Answers (1)
Emmanouil Tzorakoleftherakis
on 26 Jan 2023
Just because the reward of a single episode meets the desired performance, this does not mean that when you stop ttraining you should see exactly the same behavior from the agent. It could be that the agent was influenced by parameters such as exploration, environment noise etc to get to this result.
Before stopping training, you shouldbe able to see consistent good behavior across multiple episodes in a row (or high average episode reward). In that case, after stopping training, the agent behavior should be close to what you saw in training.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!