Load data into experience buffer: DDPG agent

10 visualizaciones (últimos 30 días)
Daksh Shukla
Daksh Shukla el 23 de Feb. de 2020
Comentada: Francisco Serra el 20 de Dic. de 2023
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?

Respuestas (2)

JiaZheng Yan
JiaZheng Yan el 31 de Mzo. de 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:
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 comentarios
zimeng Wang
zimeng Wang el 1 de Abr. de 2022
您好,我可以用这个方法查看buffer里的数据,但是如何修改或者删除buffer里的数据?
Arman Ali
Arman Ali el 1 de Ag. de 2022
have you found the answer? if yes please guide?

Iniciar sesión para comentar.


Priyanshu Mishra
Priyanshu Mishra el 26 de Feb. de 2020
Hi Daksh,
You may find following link useful for your answer.
  2 comentarios
Daksh Shukla
Daksh Shukla el 26 de Feb. de 2020
Hello Priyanshu,
Thanks for your response.
However, the link does not exactly resolve the problem I am having. The link talks about running a lot of initial simulations and saving the agent with the experience buffer. But, what I would like to do is use data from "real experiments" and NOT simulations. I would like to add this data to the experience buffer or the replay memory to kick start the DDPG learning.
Based on all my reading and trying to access experience buffer in Matlab, it seems like experience buffer object is a hidden property and I cannot upload data to it directly from an external source.
I would really appreciate if you could let me know a direct way to upload data to the experience buffer, if there is one.
Francisco Serra
Francisco Serra el 20 de Dic. de 2023
Any updates on this? @Daksh Shukla?

Iniciar sesión para comentar.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by