Sending episode number to simulink during training
Show older comments
Hello every one,
I am using reinforcement learning with two agents and I am going to laod the number of episode from workspace in simulink by "from workspace block". I tried trainingStats.EpisodeIndex(1) but I recieved error. As trainingStats would appear after terminating episode 1, I dont have any idea to find the episode number in simulink.
I would appreciate any help.
3 Comments
Esan freedom
on 24 Jan 2023
Benjamin Thompson
on 24 Jan 2023
Can you provide a listing of the error message and more examples of what you are doing and how you are doing it?
Esan freedom
on 24 Jan 2023
Accepted Answer
More Answers (1)
Fangjun Jiang
on 24 Jan 2023
0 votes
Try the Constant block and specify the value as trainingStats.EpisodeIndex(1). Read the document of the "From Workspace" block to see if it is what you needed.
1 Comment
Esan freedom
on 24 Jan 2023
Categories
Find more on Reinforcement Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!