Export Q-Table from rlAgent

3 visualizaciones (últimos 30 días)
Johann Lange
Johann Lange el 26 de Mzo. de 2021
Comentada: Johann Lange el 26 de Mzo. de 2021
Hello,
I was trying out the example for a Q-Table based Reinforcement Learning agent as per MathWorks example.
Now after training, I'd like to export/visualize the resulting Q-Table. I inspected the resulting agent, but I'm not able to extract the Q-Table from it.
Is this even possible? If so, how? Or do I manually have to sample throw all states to reverse engineer the table?
Thank you!

Respuesta aceptada

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis el 26 de Mzo. de 2021
Here is an example
load('basicGWQAgent.mat','qAgent')
critic = getCritic(qAgent);
tableObj = getModel(critic);
table = tableObj.Table

Más respuestas (0)

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by