How do I save Episode Manager training data for *plotting* later

26 vues (au cours des 30 derniers jours)
Hi,
Lets say I am using two algorithms to train for a task (DDPG and PPO). How do I save the data to plot a comparion later?
This is data like episode rewards, Q-value etc. plotted at every episode.
(Please note I am not referring to network weights for transfer learning.)

Réponse acceptée

Rajesh Siraskar
Rajesh Siraskar le 5 Jan 2021
Modifié(e) : Rajesh Siraskar le 5 Jan 2021
Thank you Asvin and Emmanouil.
I didnt realize that I could store trainingStats and I can do anything with the data later. Awesome.
% Train the agent
trainingStats = train(agent, env, trainOpts);

Plus de réponses (1)

Emmanouil Tzorakoleftherakis
Modifié(e) : Emmanouil Tzorakoleftherakis le 11 Mar 2021
Hi Rajesh,
As mentioned in the comment above, if you are using R2020b, you can use
>> help rlPlotTrainingResults
to recreate the Episode manager plot.
If you are using R2021a, you may notice that this function is now renamed to "inspectTrainingResult".
Hope that helps

Catégories

En savoir plus sur Training and Simulation dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by