Unable to read mat-file reinforcement learning agents

3 ビュー (過去 30 日間)
Tuwe Löfström
Tuwe Löfström 2020 年 7 月 13 日
コメント済み: Walter Roberson 2020 年 7 月 13 日
I have saved agents using the SaveAgentDirectory in the rlTrainingOptions. When I try to load the agent files, I get the following error:
Error using load
Unable to read MAT-file C:\filepath\Agent1.mat. File might be corrupt.
This happens regardless of whether I try to open the file in the GUI or through e.g. the following code:
listing = dir("C:\filepath\*.mat");
for ct = 1:numel(listing)
load(sprintf("C:\\filepath\\%s",listing(ct).name));
% do something
end
I have attached one of the saved agent files for reference.
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 7 月 13 日
The MATCAT file analysis tool in the File Exchange says that the second variable is corrupt.
Note though that MATCAT was developed for an older MATLAB and might not be able to analyze all variables... but one variable is all that the regular MATLAB tools are able to successfully find in it.

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by