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 Center および File ExchangeReinforcement Learning についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by