How to extract neural network of reinforcement learning agent?

4 visualizaciones (últimos 30 días)
Is there a way to get the neural network of trained reinforcement learning agent?

Respuesta aceptada

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis el 5 de Mzo. de 2021
For critics:
criticNet = getModel(getCritic(trained_agent))
For actors
actorNet = getModel(getActor(trained_agent))
Note that you can use this regardless of whether the agent is trained or not.
Hope this helps
  5 comentarios
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis el 5 de Mzo. de 2021
Editada: Emmanouil Tzorakoleftherakis el 11 de Mzo. de 2021
What I mentioned above should work then. Use the DL blocks or ML Function block to bring the trained network into Simulink, and the plain C codegen feature I mentioned in my other answer to deploy. Plain C code generation shipped in R2021a.
Yihao Wan
Yihao Wan el 5 de Mzo. de 2021
Sure, I will try. Thank you for the reply.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning with Simulink en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by