You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ML-For-Beginners/8-Reinforcement
Jen Looper 58e9884939
quiz renumbering, removing 5th NLP lesson, reordering Intro lessons
3 years ago
..
1-QLearning quiz renumbering, removing 5th NLP lesson, reordering Intro lessons 3 years ago
2-Gym quiz renumbering, removing 5th NLP lesson, reordering Intro lessons 3 years ago
translations re-numbering lesson groups 4 years ago
README.md edits to RL homepage 3 years ago

README.md

Getting Started with Reinforcement Learning

Peter and the Wolf

🎥 Click the image above to listen to Peter and the Wolf by Prokofiev

Regional Topic: Peter and the Wolf (Russia)

Peter and the Wolf is a musical fairy tale written by a Russian composer Sergei Prokofiev. It is a story about young pioneer Peter, who bravely goes out of his house to the forest clearing to chase the wolf. In this section, we will train machine learning algorithms that will help Peter:

  • Explore the surrounding area and build an optimal navigation map
  • Learn how to use a skateboard and balance on it, in order to move around faster.

Introduction to Reinforcement Learning

In previous sections, you have seen two example of machine learning problems:

  • Supervised, where we had some datasets that show sample solutions to the problem we want to solve. Classification and Regression are supervised learning tasks.
  • Unsupervised, in which we do not have training data. The main example of unsupervised learning is Clustering.

In this section, we will introduce you to a new type of learning problems, which do not require labeled training data. There are a several types of such problems:

  • Semi-supervised learning, where we have a lot of unlabeled data that can be used to pre-train the model.
  • Reinforcement learning, in which the agent learns how to behave by performing a lot of experiments in some simulated environment.

Suppose, you want to teach computer to play a game, such as chess, or Super Mario. For computer to play a game, we need it to predict which move to make in each of the game states. While this may seem like a classification problem, it is not - because we do not have a dataset with states and corresponding actions. While we may have some data like that (existing chess matches, or recording of players playing Super Mario), it is likely not to cover sufficiently large number of possible states.

Instead of looking for existing game data, Reinforcement Learning (RL) is based on the idea of making the computer play many times, observing the result. Thus, to apply Reinforcement Learning, we need two things:

  1. An environment and a simulator, which would allow us to play a game many times. This simulator would define all game rules, possible states and actions.
  2. A reward function, which would tell us how well we did during each move or game.

The main difference between supervised learning is that in RL we typically do not know whether we win or lose until we finish the game. Thus, we cannot say whether a certain move alone is good or now - we only receive reward at the end of the game. And our goal is to design such algorithms that will allow us to train a model under such uncertain conditions. We will learn about one RL algorithm called Q-learning.

Lessons

  1. Introduction to Reinforcement Learning and Q-Learning
  2. Using gym simulation environment

Credits

"Introduction to Reinforcement Learning" was written with ♥️ by Dmitry Soshnikov