How to check the Q(s,a) value from a trained DQN agent?

4 Ansichten (letzte 30 Tage)
Yichen Hu
Yichen Hu am 24 Sep. 2019
Beantwortet: Kajal Bansala am 10 Mär. 2021
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?

Antworten (1)

Kajal Bansala
Kajal Bansala am 10 Mär. 2021
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:

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by