MonitorLogger
Log reinforcement learning training data to monitor window
Description
Use a MonitorLogger
object to log data to a monitor window,
within the train function or inside a custom training loop. To log data when using the train
function, specify appropriate callback functions in MonitorLogger
, as shown
in the examples. These callbacks are executed at different stages of training, for example,
EpisodeFinishedFcn
is executed after the completion of an episode. The
output of a callback function is a structure containing the data to log at that stage of
training.
Note
MonitorLogger
is an handle object. If you assign an existing
MonitorLogger
object to a new MonitorLogger
object, both
the new object and the original one refer to the same underlying object in memory. To
preserve the original object parameters for later use, save the object to a MAT-file. For
more information about handle objects, see Handle Object Behavior.
Creation
Create a MonitorLogger
object using rlDataLogger
specifying a trainingProgressMonitor
object as input argument.
Properties
Object Functions
Examples
Limitations
Only scalar data is supported when logging data with a
MonitorLogger
object. The structure returned by the callback functions must contain fields with scalar data.Resuming of training from a previous training result is not supported when logging data with a
MonitorLogger
object.
Version History
Introduced in R2022b