MATLAB Answers

Where to update actions in environment?

4 ビュー (過去 30 日間)
Jason Hu
Jason Hu 2021 年 5 月 11 日
I'm creating a custom reinforcement learning environment by using the custom environment template (cart pole code). However, the cart pole environment has two actions at all times and therefore just defines them in the constructor. For my environment there can be varying actions based on the state and I was wondering where best to update that. I was thinking of doing it at the end of the setup function but I am not sure. Thanks

回答 (1 件)

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021 年 5 月 13 日
Reinforcement Learning Toolbox agents expect a static action space, so fixed number of options at each time step. To create a dynamic action space you would have to create your own custom agent.

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by