Prioritized experience replay
We used a replay buffer where all of the samples have an equal probability of being sampled. This, however, is not very efficient, as some samples are more important than others. This is the motivation behind prioritized experience replay, where samples that have a higher Temporal Difference (TD) error are sampled with a higher probability than others. The first time a sample is added to the replay buffer, it is set a maximum priority value so as to ensure that all samples in the buffer are sampled at least once. Thereafter, the TD error is used to determine the probability of the experience to be sampled, which we compute as this:
Whereas the previous r is the reward, θ is the primary Q-network model parameters, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access