clean up reinforcement learning environment or data logger object -凯发k8网页登录
clean up reinforcement learning environment or data logger object
since r2022a
syntax
description
when you define a custom training loop for reinforcement learning, you can
simulate an agent or policy against an environment using the runepisode
function. use the cleanup
function to clean up the environment after
running simulations using multiple calls to runepisode
. to clean up the
environment after each simulation, you can configure runepisode
to
automatically call the cleanup
function at the end of each
episode.
also use cleanup
to perform clean up tasks for a
filelogger
or monitorlogger
object after logging data
within a custom training loop.
environment objects
data logger objects
cleanup(
cleans up the specified data
logger object after logging data within a custom training loop. this task might involve
for example transferring any remaining data from lgr
)lgr
internal memory
to a logging target (eitherlog data to disk in a custom training loop a mat-file or a trainingprogressmonitor
object).
examples
input arguments
version history
introduced in r2022a