rlCustomEvaluator
Custom object for evaluating reinforcement learning agents during training
Since R2023b
Description
Create an rlCustomEvaulator
object to specify a custom function
and evaluation frequency that you want to use to evaluate agents during training. To train the
agents, pass this object to train
.
For more information on training agents, see Train Reinforcement Learning Agents.
Creation
Syntax
Description
returns the custom evaluator object evaluator
= rlCustomEvaluator(evalFcn
)evaluator
. The
evalFcn
argument is a handle to your custom MATLAB® evaluation function.
also specifies the number of training episodes after which evaluator
= rlCustomEvaluator(evalFcn
,EvaluationFrequency=evalPeriod
)train
calls the evaluation function.
Properties
Object Functions
Examples
Version History
Introduced in R2023b