MATLAB Answers

Is it possible to have StopTrainingCriteria in rlTrainingOptions ( RL Toolbox )

3 views (last 30 days)
Akhilesh Koul
Akhilesh Koul on 30 Apr 2020
Answered: Mahesh Taparia on 13 May 2020
Hi,
Is there a way to have multiple StopTrainingCriteria in rlTrainingOptions, e.g. only after say 21 "EpisodeCount", if "AverageReward" is greater that set threshold, stop learning, not before that.

  0 Comments

Sign in to comment.

Answers (1)

Mahesh Taparia
Mahesh Taparia on 13 May 2020
Hi
It can be done by defining the threshold in the training option. For example, set the "AverageReward" as threshold and define rlTrainingOptions as given below:
trainOpts = rlTrainingOptions(...
'MaxEpisodes',1000,...
'MaxStepsPerEpisode',1000,...
'StopTrainingCriteria',"AverageReward",...
'StopTrainingValue',480,...
'Verbose',true,...
'Plots',"training-progress")
For more information, you can visit this documentation.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by