After training has finished, If I close the "Reinforcement Learning Episode Manager" window, how do I reopen it ??
Best Answer
Hi Ahmad,
It is not possible to reopen the Episode Manager after closing it. The graphical window is triggered only when you run a function like train. The windows is destroyed once you close it. If you want to access specific training variables like EpisodeReward, TrainingSteps, you can get them in the workspace as output arguments.
You can get the parameters from the trained's critic representation for DQN agent. In MATLAB R2020a, see getLearnableParameters and getCritic functions (function name changes a bit since R2019b). You can follow similar steps to get the actor's parameters from actor-based agent like DDPG or PPO.
To create a custom MATLAB environment, use the template that pops up after running
rlCreateEnvTemplate('myenv')
In this template there are two methods that can be used for visualization, "plot", and "envUpdatedCallback" (it is called from within "plot"). Use "plot" to create the basic stationary parts of your visualization, and "envUpdatedCallback" to update the coordinates of the moving parts based on your states.
Best Answer