フィルターのクリア

How can I extract the actor-critic model from a saved pre-trained agent?

1 回表示 (過去 30 日間)
Arijit Bhattacharjee
Arijit Bhattacharjee 2022 年 3 月 23 日
I have trained a PPO agent and saved the TrainStat at the end of the training (save TrainStat). I have used the following set of commands to retrieve the actor net but the result I am getting is blank.
TrainStat.agent4
ans =
rlPPOAgent with properties:
AgentOptions: [1×1 rl.option.rlPPOAgentOptions]
>> actor = getActor(TrainStat.agent4)
actor =
rlStochasticActorRepresentation with properties:
ActionInfo: [1×1 rl.util.rlFiniteSetSpec]
ObservationInfo: [1×1 rl.util.rlNumericSpec]
Options: [1×1 rl.option.rlRepresentationOptions]
>> A_net = getModel(actor)
A_net =
[]
Please suggest if I am making any mistakes while saving the TrainStat or is there any other way to proceed.

回答 (0 件)

カテゴリ

Help Center および File ExchangePolicies and Value Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by