- After obtaining the results in the app, click on "Save Session" within the "Reinforcement Learning" tab. This action saves a .mat file in your workspace.
- Access the results through the variable: "RLDesignerSession.Data.SimResults". This variable is a struct array containing all the experiments.
- For instance, to access the reward timeseries data for the first simulation of the first experiment, use: "RLDesignerSession.Data.SimResults(1).Data(1).Reward".
- To visualize the results, sum up the rewards for each simulation to obtain the cumulative reward. This data can then be used to plot a bar graph similar to the one in the Reinforcement Learning Designer App.
Is there a way to visualize simulation result (after RL agent training) at the command line?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nicolas CRETIN
am 7 Mai 2024
Bearbeitet: Nicolas CRETIN
am 17 Mai 2024
Hi!
Is there any way to visualize the result of a simulation at the command line, given a simulation result (as on the following picture for example)?
I mean, I can run the following lines to get the simulation result, but how could I then display it? How should I for example open the Reinforcement Learning Designer app at the command line and then 'plot' the simResults?
% Perform simulations
simResults = sim(env,agentPPO,simOptions);
Is there also a way of registering the "experience1" variable in the workspace?
0 Kommentare
Akzeptierte Antwort
Neha
am 14 Mai 2024
Bearbeitet: Neha
am 14 Mai 2024
Hi Nicolas,
I understand you're looking to export simulation results from the Reinforcement Learning Designer app to the workspace for visualization. Here's how you can do it:
You can refer to the following documentation link for more information on the fields of the "RLDesignerSession.Data.SimResults" struct:
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Training and Simulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!