How to check the weight and bias which taked by getLearnableParameters?

조회 수: 2 (최근 30일)
PoHan Lu
PoHan Lu 2021년 5월 11일
% when I check the weight and bias use Engineering computer I get wrong anser
% I want to find the weight and bias of my agent
% I use the example "Train Reinforcement Learning Policy Using Custom Training Loop" and "getLearnableParameters(actor)"

답변 (1개)

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021년 5월 13일
Can you provide some more details? What does 'wrong answer' mean? How do you know the weights you are seeing are not correct? Are you getting an error?
In any case, looking at your code I suspect that you are using the initial 'actor' variable as argument to 'getLearnableParameters'. After you complete training, you need to extract the updated actor first as shown on this doc page.
actor = getActor(agent);
params = getLearnableParameters(actor);

카테고리

Help CenterFile Exchange에서 Reinforcement Learning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by