Training progress is not visible

조회 수: 8 (최근 30일)
Sania Gul
Sania Gul 2024년 9월 18일
편집: Shubham 2024년 9월 19일
I am training the network, but the progress is not shown in the plot. However, the variables during the reward function calculation are displayed on the screen as shown in the figure below.
doTraining = true;
if doTraining
% Train the agent.
trainingStats = train(agent,env,trainOpts);
else
% Load the pretrained agent for the example.
load("PretrainedDDPGAgent.mat","agent")
end

채택된 답변

Shubham
Shubham 2024년 9월 18일
편집: Shubham 2024년 9월 18일
Hey Sania,
For plotting the training progress, you can use the "Plots" Name-Value arguments while providing the training options to train the network. For example:
trainOpts = rlTrainingOptions(...
MaxEpisodes=1000,...
MaxStepsPerEpisode=1000,...
StopTrainingCriteria="AverageReward",...
StopTrainingValue=480,...
Verbose=true,...
Plots="training-progress")
You can refer to the following documentation for more information on the arguments:
I hope this helps!
  댓글 수: 4
Sania Gul
Sania Gul 2024년 9월 19일
편집: Sania Gul 2024년 9월 19일
Tnk u soooooooooo mch for this coperation. I have increased the value of StopTrainingValue and now all 3 curves(dark, light blue and orange) are visible.
Shubham
Shubham 2024년 9월 19일
편집: Shubham 2024년 9월 19일
Glad the issue is resolved!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by