How to check the Q(s,a) value from a trained DQN agent?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have trained a DQN agent using the new Reinforcement Learning toolbox. And I wonder if it's possible to check the Q value of a certain (s,a) pair?
댓글 수: 0
답변 (1개)
Kajal Bansala
2021년 3월 10일
Hello Yichen,
You can extract the 'rlQValueRepresentation' critic from the 'rlDQNAgent' using 'getCritic()'. From there you can use 'getValue()' to get the value for the observation. Here are my documentation page references:
getCritic: https://www.mathworks.com/help/reinforcement-learning/ref/rl.agent.rlqagent.getcritic.html
rlQValueRepresentation: https://www.mathworks.com/help/reinforcement-learning/ref/rlqvaluerepresentation.html
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!