cleanup
Clean up reinforcement learning environment after running multiple simulations
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.