Could you help clarify the terminology and usage of Exploratory Policy and Exploratory Model in TD3 Reinforcement Learning
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bay Jay
el 27 de Nov. de 2023
Comentada: Bay Jay
el 22 de En. de 2024
TD3 agent has the exploratory model that we set for noise parameters. By default example PMSM Control, the UseExploratorypolicy is set = 0.
Also during policy generation after the training, exploratorypolicy has to be set to 0. What is the right procedure during training. Is the exploratory policy supposed to be =1 or 0 during training and what is the effect on the exploratory model (noise) when exploratory policy is set to 0. Thanks.
0 comentarios
Respuesta aceptada
Emmanouil Tzorakoleftherakis
el 21 de Dic. de 2023
The answer above is correct with a small caveat: Even if UseExploratorypolicy is set = 0, the agent will still explore during training (we are taking care of it under the hood). After training it returns to the original value/the value that you set. Essentially this parameter only affects what happens when you run simulations (after training), or when you manually call 'getAction'.
Hope this helps
Más respuestas (1)
Venu
el 12 de Dic. de 2023
Editada: Venu
el 12 de Dic. de 2023
The correct procedure during training for the TD3 agent is to set the exploratory policy to 1.
When the exploratory policy is set to 1, it enables the agent to use the base agent exploration policy, which incorporates the exploratory model for noise parameters. This enables the agent to explore its action and observation spaces by introducing "stochastic" action selection, thus encouraging exploration during training.
When the exploratory policy is set to 0, it forces the agent to use the base agent greedy policy, resulting in "deterministic" action selection. In this case, the exploratory model (noise) will not influence the agent's actions during training, as the agent behaves deterministically selecting actions with maximum likelihood, and does not explore its action and observation spaces during deployment.
In the "rlTD3agent" documentation below, the "generatePolicyFunction" block is a function used to create a policy function for deployment.
https://www.mathworks.com/help/reinforcement-learning/ref/rl.agent.rltd3agent.html https://www.mathworks.com/help/reinforcement-learning/ref/rl.policy.rlmaxqpolicy.generatepolicyfunction.html
Setting the "UseExplorationPolicy" property to true during training ensures agent behaves stochastically, while setting up the policy for deployment, setting the property to false ensures the agent behaves deterministically,
Hope this helps!
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!