Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Q-value

What is Q-value?

In reinforcement learning, the total discounted reward expected from taking a given action in a given state and acting well afterwards.

Where it is taught

Reinforcement learning. An agent tries things, receives a reward now and then, and works out which of its earlier actions deserve the credit. One update rule is enough to learn a maze.

What the lesson leaves you with

  • An agent learns from rewards, which can come long after the actions that earned them.
  • A Q-value is the expected discounted reward of taking an action in a state.
  • The update moves each estimate a little towards the reward plus the discounted value of the next state.
Open the lesson

Questions

What is Q-value?
In reinforcement learning, the total discounted reward expected from taking a given action in a given state and acting well afterwards.
Where is Q-value used in AI?
An agent tries things, receives a reward now and then, and works out which of its earlier actions deserve the credit. One update rule is enough to learn a maze.
What is the key idea to remember about Q-value?
An agent learns from rewards, which can come long after the actions that earned them.
Where can I learn Q-value step by step?
In the lesson “Reinforcement learning” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Clustering
  • Discount
  • Matrix factorisation
  • Precision and recall
  • Reinforcement learning
  • Self-supervised learning