![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/280894/image.png)
Load data into experience buffer: DDPG agent
9 views (last 30 days)
Show older comments
I am using RL toolbox version 1.1 with Matlab R2019b and using the DDPG agent to design a controller. Is there a way to load in data (state, action, reward, next state) collected from real experiments into the experience buffer before startting training?
0 Comments
Answers (2)
JiaZheng Yan
on 31 Mar 2020
I find a way to show the Memory of the experience buffer.
You can open the file "ExperienceBuffer.m", which is in "...\Matlab\toolbox\rl\rl\+rl\+util".
In this file, you can the property value of the variable Memory. For example:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/280894/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/280894/image.png)
Then you set:
agentOpts.SaveExperienceBufferWithAgent = true;
agentOpts.ResetExperienceBufferBeforeTraining = false;
After your training, you can get the data in ''agent.ExperienceBuffer.Memory''
This also means that you can modify and use the training data.
I hope this method works for you : )
8 Comments
See Also
Categories
Find more on Image Data Workflows 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!