How to save state in reinforcement learning

조회 수: 5 (최근 30일)
ryunosuke tazawa
ryunosuke tazawa 2021년 10월 18일
답변: Harsh 2025년 1월 23일
I wanna know the way to save information of agent's state in reinforcement learning.

답변 (1개)

Harsh
Harsh 2025년 1월 23일
Hi Ryunosuke,
To save an agent while training you can use “SaveAgentCriteria”, “SaveAgentValue” and “SaveAgentDirectory” properties of “rlTrainingOptions” object to control when and where to save an agent while training.
“SaveAgentCriteria” is used to specify the condition for saving agents during training. “SaveAgentValue” is used to specify the critical value of condition for saving agents. “SaveAgentDirectory” is used to specify the directory for saved agents.
Please refer to the following documentation to understand more regarding “rlTrainingOptions” object and its properties - https://www.mathworks.com/help/reinforcement-learning/ref/rl.option.rltrainingoptions.html?s_tid=doc_ta
After training your agent, you can save it using the “save” function. Please refer to the following MATLAB answer for more information - https://www.mathworks.com/matlabcentral/answers/816585-saving-trained-rl-agent-after-training

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by