学習時のログの取り出しに関して

4 vues (au cours des 30 derniers jours)
Teppei Iwata
Teppei Iwata le 1 Mai 2020
Commenté : Teppei Iwata le 1 Mai 2020
reinforcement learning toolboxを使用して学習を行っています.
学習時に
trainingStats = train(agent,env,trainingOpts);
を実行して学習を行っているのですが,学習中の状態,行動,報酬の遷移履歴を確認する方法はないのでしょうか?
よろしくお願いいたします.
  4 commentaires
Toshinobu Shintai
Toshinobu Shintai le 1 Mai 2020
確認ですが、学習の設定「rlTrainingOptions」を使ってSave Agentを設定されていますでしょうか。
例えば、以下のようにすると、学習途中の全てのAgentを記録できます。
trainingOpts = rlTrainingOptions(...
'SaveAgentCriteria','EpisodeReward',...
'SaveAgentValue',-inf);
記録した情報は「savedAgents」というフォルダにmatファイルとして格納されています。
これには含まれていない情報が知りたいということでしょうか。
Teppei Iwata
Teppei Iwata le 1 Mai 2020
ご回答ありがとうございます.
attachLogger(this, this.MaxSteps);
を追加することでAgent内に状態遷移履歴が保存されることを失念しておりました.
ご指摘の通り,savaAgentsのオプションを追加することでAgent内に保存してある状態遷移履歴にアクセスすることができました.
ありがとうございます.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Training and Simulation dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!