log reinforcement learning training data to monitor window -pg电子麻将胡了
log reinforcement learning training data to monitor window
since r2022b
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
using a monitorlogger object to log data when using the train function does
not affect (and is not affected by) any option to save agents during training specified
within an rltrainingoptions
object.
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 .
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
monitorloggerobject. 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
monitorloggerobject.
version history
introduced in r2022b
