Get observation of final episode of RL agent
5 ビュー (過去 30 日間)
古いコメントを表示
shadi abpeikar
2021 年 2 月 11 日
コメント済み: Ajay Vishwakarma
2021 年 4 月 15 日
Hi everyone,
I statrted using RL toolbox three months ago, and I trained my RL agent. But as a part of my work I need to have the observation used in the final iteration of some episodes. Is there any opportunity to get the observation participated in a specific episode of RL training, or nor?
Also, it might be noticeable that I defined a custom environment matching with my problem, and both of the observation and state spaces are continuous.
採用された回答
Emmanouil Tzorakoleftherakis
2021 年 2 月 13 日
編集済み: Emmanouil Tzorakoleftherakis
2021 年 2 月 14 日
Do you want to save the observations in the last time step of the final episode? Or all the observations shown in the final episode? Are you using a custom MATLAB or Simulink environment? Regardless, I think you can add some kind of counter and when you reach the desired episode #, just save what you need in a mat file.
It sounds like you can use the IsDone flag/condition to save what you need. You would still need a counter and when the max number of steps in the episode is reached, set IsDone to true and save the variables you need.
4 件のコメント
shadi abpeikar
2021 年 2 月 14 日
Thanks a lot, I can't believe that It was as easy as this! You are definitely right this is the way.
Emmanouil Tzorakoleftherakis
2021 年 2 月 15 日
Np. Please accept the answer if it answered your question
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Training and Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!