Thanks your great work, I was reading your amazing blog recently. Maybe a stupid issue, I don't really understand the logits means in your code. I only know that it is the raw output of the last Dense layer. But how can it be put into the tf.random.categorical(logits, 1) directly without any preprocessing? I mean it at least should be pass into a softmax layer to convert it to a probability distribution right? Or the softmax is an inner operation of tf.random.categorical(logits, 1) and so that we can pass the logits directly into that function to pick an action based on its probability? I tried to track its source code but failed.
Another question, what the logits means, q-values of each action or just their probability? As far as I know that layer should be a policy-based operation, so ... I think there is nothing to do with q-value or value-function.
Thanks your great work, I was reading your amazing blog recently. Maybe a stupid issue, I don't really understand the
logitsmeans in your code. I only know that it is the raw output of the lastDenselayer. But how can it be put into thetf.random.categorical(logits, 1)directly without any preprocessing? I mean it at least should be pass into asoftmaxlayer to convert it to a probability distribution right? Or thesoftmaxis an inner operation oftf.random.categorical(logits, 1)and so that we can pass thelogitsdirectly into that function to pick an action based on its probability? I tried to track its source code but failed.Another question, what the
logitsmeans,q-valuesof eachactionor just theirprobability? As far as I know that layer should be apolicy-basedoperation, so ... I think there is nothing to do withq-valueorvalue-function.