Training progress is not visible
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sania Gul
am 18 Sep. 2024
Bearbeitet: Shubham
am 19 Sep. 2024
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
0 Kommentare
Akzeptierte Antwort
Shubham
am 18 Sep. 2024
Bearbeitet: Shubham
am 18 Sep. 2024
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!