フィルターのクリア

How to extract neural network of reinforcement learning agent?

4 ビュー (過去 30 日間)
Yihao Wan
Yihao Wan 2021 年 3 月 4 日
Is there a way to get the neural network of trained reinforcement learning agent?

採用された回答

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021 年 3 月 5 日
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 件のコメント
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021 年 3 月 5 日
編集済み: Emmanouil Tzorakoleftherakis 2021 年 3 月 11 日
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 2021 年 3 月 5 日
Sure, I will try. Thank you for the reply.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by