Beginner Topic 5 of 51 AI & Machine Learning
Reinforcement Learning Basics
Learning actions by maximizing reward from an environment.
How it works
In reinforcement learning, an agent interacts with an environment in discrete steps: it observes a state, takes an action, receives a reward and moves to a new state. The goal is to learn a policy that maximizes cumulative expected reward over time. The setting is formalized as a Markov decision process, with concepts such as value functions, discount factor and the exploration versus exploitation trade-off. Unlike supervised learning, there are no labeled correct actions, only delayed reward signals.
Step-by-step walkthrough
- The agent observes the state of the environment.
- It chooses an action.
- The environment changes and gives a reward.
- The reward is feedback, positive or negative.
- The agent learns a policy that maximizes long-term reward.
Where it is used
Game-playing systems like AlphaGo, robotics control, resource allocation, recommendation sequencing, chip design and tuning of language models with human feedback use reinforcement learning.
Common pitfall
Learning can require enormous numbers of interactions, rewards that are sparse or misdesigned cause agents to exploit loopholes, called reward hacking, and training is unstable. Simulations may not match reality. Define rewards carefully, start with simple environments, use baselines and run multiple seeds because results vary.
Where it fits in the course
Reinforcement Learning Basics is topic 5 of 51 in AI & Machine Learning, rated Beginner. It follows Unsupervised Learning. The next topic is Training and Test Sets.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the AI & Machine Learning quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the AI & Machine Learning quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Reinforcement Learning Basics?
Where do people use Reinforcement Learning Basics?
What is the most common mistake with Reinforcement Learning Basics?
What should I learn before this topic?
How can I practice it?
Is Reinforcement Learning Basics hard to learn?
How long does it take to learn Reinforcement Learning Basics?
Which topics are related to Reinforcement Learning Basics?
What should I study after Reinforcement Learning Basics?
Related topics
- Unsupervised Learning (AI & Machine Learning)
- Training and Test Sets (AI & Machine Learning)
- Supervised Learning (AI & Machine Learning)
- Features and Labels (AI & Machine Learning)
- Algorithm Basics (Algorithms)
- Command Line Basics (DevOps & Tooling)
- HTML Basics (Web Development)