How to save state in reinforcement learning

4 visualizaciones (últimos 30 días)
ryunosuke tazawa
ryunosuke tazawa el 18 de Oct. de 2021
Respondida: Harsh el 23 de En. de 2025
I wanna know the way to save information of agent's state in reinforcement learning.

Respuestas (1)

Harsh
Harsh el 23 de En. de 2025
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

Community Treasure Hunt

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

Start Hunting!

Translated by