Export Q-Table from rlAgent

조회 수: 8 (최근 30일)
Johann Lange
Johann Lange 2021년 3월 26일
댓글: Johann Lange 2021년 3월 26일
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!

채택된 답변

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021년 3월 26일
Here is an example
load('basicGWQAgent.mat','qAgent')
critic = getCritic(qAgent);
tableObj = getModel(critic);
table = tableObj.Table
  댓글 수: 1
Johann Lange
Johann Lange 2021년 3월 26일
Awesome! Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by