How to simulate saved agents?
7 ビュー (過去 30 日間)
古いコメントを表示
trainOpts.SaveAgentCriteria = "EpisodeCount";
trainOpts.SaveAgentValue = 1;
trainOpts.SaveAgentDirectory = pwd + "\Agents";
trainingStats = train(agent,env,trainOpts);
simOpts = rlSimulationOptions(...
'MaxSteps',1000,...
'NumSimulations',3);
load Agents/Agent1.mat
xpr = sim(env,Agent1,simOpts)
I have saved agents in "Agents" folder as shown. How do I simulate these agents? Last two lines in the code above are incorrect. What is the correct way?
0 件のコメント
回答 (1 件)
Emmanouil Tzorakoleftherakis
2021 年 2 月 23 日
Hello,
load Agent1.mat
xpr = sim(env,Agent1,simOpts)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!