Machine Learning & AI
Advanced

Q-Learning Update

Model-free reinforcement learning rule that learns action values from experience.

Formula

Q(s,a):=Q(s,a)+α[r+γmaxaQ(s,a)Q(s,a)]Q(s,a):=Q(s,a)+\alpha\big[r+\gamma\max_{a^{\prime}}Q(s^{\prime},a^{\prime})-Q(s,a)\big]

Variables

\alphaLearning rate
rReward
\gammaDiscount
s^{\prime}Next state

Example

The bracket is the temporal-difference error

Did You Know?

Deep Q-Networks used this rule to learn Atari games directly from raw pixels in 2013.

Share this formula