CrashCourse · @crashcourse
Reinforcement Learning: Crash Course AI #9
Uploaded June 7, 2020 · Length 11:28
Summary
Learn about reinforcement learning, where AI agents learn through trial-and-error and rewards to achieve goals.
- reinforcement learning explained
- ai trial and error
- agent environment reward
- exploration vs exploitation
- ai learning methods
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Hey, I’m Jabril and welcome to Crash Course AI.
- 0:03
Say I want to get a cookie from a jar that’s on a tall shelf.
- 0:06
There isn’t one “right way” to get the cookies.
- 0:09
Maybe I find a ladder, use a lasso, or build a complicated system of pulleys.
- 0:15
These could all be brilliant or terrible ideas, but if something works, I get the sweet taste
- 0:21
of victory... and I learn that doing that same thing could get me another cookie in
- 0:26
the future.
- 0:27
We learn lots of things by trial-and-error, and this kind of “learning by doing” to
- 0:30
achieve complicated goals is called Reinforcement Learning.
- 0:35
INTRO
- 0:44
So far, we’ve talked about two types of learning in Crash Course AI: Supervised Learning,
- 0:49
where a teacher gives an AI answers to learn from, and Unsupervised Learning, where an
- 0:54
AI tries to find patterns in the world.
- 0:56
Reinforcement Learning is particularly useful for situations where we want to train AIs
- 1:00
to have certain skills we don’t fully understand ourselves.
- 1:04
For example, I’m pretty good at walking, but trying to explain the process of walking
- 1:09
is kind of difficult.
- 1:11
What angle should your femur be relative to your foot?
- 1:15
And should you move it with an average angular velocity of… yeah, never mind… its really
- 1:20
difficult.
- 1:21
With reinforcement learning, we can train AIs to perform complicated tasks.
- 1:26
But unlike other techniques, we only have to tell them at the very end of the task if
- 1:31
they succeeded, and then ask them to tell us how they did it.
- 1:35
(We’re going to focus on this general case, but sometimes this feedback could come earlier.
- 1:40
So if we want an AI to learn to walk, we give them a reward if they’re both standing up
- 1:45
and moving forward, and then figure out what steps they took to get to that point.
- 1:50
The longer the AI stands up and moves forward, the longer it’s walking, and the more reward
- 1:56
it gets.
- 1:57
So you can kind of see how the key to reinforcement learning is just trial-and-error, again and


