Contents
Which is better Q-Learning or SARSA?
Q-learning directly learns the optimal policy, whilst SARSA learns a near-optimal policy whilst exploring. If you want to learn an optimal policy using SARSA, then you will need to decide on a strategy to decay ϵ in ϵ-greedy action choice, which may become a fiddly hyperparameter to tune.
What is the difference between a positive and a negative prediction error?
The difference between the actual outcome of a situation or action and the expected outcome is the reward prediction error (RPE). A positive RPE indicates the outcome was better than expected while a negative RPE indicates it was worse than expected; the RPE is zero when events transpire according to expectations.
What is the TD error for moving Q targets?
The first problem is what is called moving Q-targets. As we saw, the first component of the TD Error (TD stands for Temporal Difference) is the Q-Target and it is calculated as the immediate reward plus the discounted max Q-value for the next state. When we train our agent, we update the weights accordingly to the TD Error.
How are q values determined in a deep Q Network?
Deep Q Networks take as input the state of the environment and output a Q value for each possible action. The maximum Q value determines, which action the agent will perform.
How is DQN used to overcome unstable learning?
DQN overcomes unstable learning by mainly 4 techniques. I explain each technique one by one. Experience Replay is originally proposed in Reinforcement Learning for Robots Using Neural Networks in 1993. DNN is easily overfitting current episodes. Once DNN is overfitted, it’s hard to produce various experiences.
Which is the first component of the TD error?
As we saw, the first component of the TD Error (TD stands for Temporal Difference) is the Q-Target and it is calculated as the immediate reward plus the discounted max Q-value for the next state. When we train our agent, we update the weights accordingly to the TD Error.