Modify ActionInfo for Agent
조회 수: 2 (최근 30일)
이전 댓글 표시
For reinforcement learning, I have defined my own environment class. Importantly, the ActionInfo of the environment is updated after every iteration based on a newly calculated component of the state, similar to the following:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/771633/image.jpeg)
The environment works well enough. For the agent, I am using rlQAgent. However, the agent's ActionInfo is not getting updated after every iteration like the environment's ActionInfo, leading to a mismatch in the action space and thus an error. How would I modify the agent such that its action space gets updated along with the environment's after every iteration? I would like to do almost exactly as the above, except it would be done in the agent instead of the environment. I know that we can create custom agents, but I don't really need the agent to be customized apart from updating the action space after each iteration, and so I would like to avoid having to create a fully custom agent merely to alter one behavior of a predefined agent.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environments에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!