CrashCourse · @crashcourse

Reinforcement Learning: Crash Course AI #9

Uploaded June 7, 2020 · Length 11:28

Reinforcement Learning: Crash Course AI #9

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.

  1. 0:00

    Hey, I’m Jabril and welcome to Crash Course AI.

  2. 0:03

    Say I want to get a cookie from a jar that’s on a tall shelf.

  3. 0:06

    There isn’t one “right way” to get the cookies.

  4. 0:09

    Maybe I find a ladder, use a lasso, or build a complicated system of pulleys.

  5. 0:15

    These could all be brilliant or terrible ideas, but if something works, I get the sweet taste

  6. 0:21

    of victory... and I learn that doing that same thing could get me another cookie in

  7. 0:26

    the future.

  8. 0:27

    We learn lots of things by trial-and-error, and this kind of “learning by doing” to

  9. 0:30

    achieve complicated goals is called Reinforcement Learning.

  10. 0:35

    INTRO

  11. 0:44

    So far, we’ve talked about two types of learning in Crash Course AI: Supervised Learning,

  12. 0:49

    where a teacher gives an AI answers to learn from, and Unsupervised Learning, where an

  13. 0:54

    AI tries to find patterns in the world.

  14. 0:56

    Reinforcement Learning is particularly useful for situations where we want to train AIs

  15. 1:00

    to have certain skills we don’t fully understand ourselves.

  16. 1:04

    For example, I’m pretty good at walking, but trying to explain the process of walking

  17. 1:09

    is kind of difficult.

  18. 1:11

    What angle should your femur be relative to your foot?

  19. 1:15

    And should you move it with an average angular velocity of… yeah, never mind… its really

  20. 1:20

    difficult.

  21. 1:21

    With reinforcement learning, we can train AIs to perform complicated tasks.

  22. 1:26

    But unlike other techniques, we only have to tell them at the very end of the task if

  23. 1:31

    they succeeded, and then ask them to tell us how they did it.

  24. 1:35

    (We’re going to focus on this general case, but sometimes this feedback could come earlier.

  25. 1:40

    So if we want an AI to learn to walk, we give them a reward if they’re both standing up

  26. 1:45

    and moving forward, and then figure out what steps they took to get to that point.

  27. 1:50

    The longer the AI stands up and moves forward, the longer it’s walking, and the more reward

  28. 1:56

    it gets.

  29. 1:57

    So you can kind of see how the key to reinforcement learning is just trial-and-error, again and