Trying to load previously saved agent fails (Reinforcement Learning Toolbox)

7 ビュー (過去 30 日間)
Jooo
Jooo 2020 年 8 月 17 日
コメント済み: Kushal Gowda N 2021 年 7 月 9 日
Hello,
I have problems to load an agent, that I have trained before. When I try to open the preconfigured examples from Mathworks (e.g. the Watertank model) I can load the existing agent and everything works fine. However, when I train the model first, save the agent and then load this agent I get a warning saying: "Warning: Variable 'agent' not found."
This happens also for other models and I don´t understand why... Can somebody help me out on this?

採用された回答

Jooo
Jooo 2020 年 8 月 17 日
Just managed to solve this problem by myself.
In case anyone else has the same problem:
In order to load your saved agent you have to use the following code snippet:
load('Agent123.mat','saved_agent');
agent = saved_agent;
  4 件のコメント
Chao Wang
Chao Wang 2021 年 4 月 16 日
  • Wouldn't that work if it was
load(' agent123.mat ')
Kushal Gowda N
Kushal Gowda N 2021 年 7 月 9 日
I get this error of saved_agent
Please help

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReinforcement Learning についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by