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/translations/pcm/8-Reinforcement
localizeflow[bot] 081f029c0d
chore(i18n): sync translations with latest source changes (chunk 1/1, 300 changes)
4 months ago
..
1-QLearning chore(i18n): sync translations with latest source changes (chunk 1/1, 300 changes) 4 months ago
2-Gym chore(i18n): sync translations with latest source changes (chunk 1/1, 300 changes) 4 months ago
README.md chore(i18n): sync translations with latest source changes (chunk 1/1, 300 changes) 4 months ago

README.md

Introduction to reinforcement learning

Reinforcement learning, RL, na one of di main machine learning style, e dey follow supervised learning and unsupervised learning. RL na all about decision: how to make correct decision or at least learn from di one wey you don make.

Imagine say you get one simulated environment like stock market. Wetin go happen if you put one regulation? E go get positive or negative effect? If e get negative effect, you go need take di negative reinforcement, learn from am, and change wetin you dey do. If e get positive result, you go need build on top di positive reinforcement.

peter and the wolf

Peter and im friends wan run comot from di hungry wolf! Image by Jen Looper

Regional topic: Peter and the Wolf (Russia)

Peter and the Wolf na one musical fairy tale wey Russian composer Sergei Prokofiev write. Di story na about young pioneer Peter, wey get courage go forest clearing to chase wolf. For dis section, we go train machine learning algorithms wey go help Peter:

  • Explore di area wey dey around and create one better navigation map
  • Learn how to use skateboard and balance on top am, so e go fit waka fast.

Peter and the Wolf

🎥 Click di image above to hear Peter and the Wolf by Prokofiev

Reinforcement learning

For di previous sections, you don see two examples of machine learning problems:

  • Supervised, wey we get datasets wey dey show sample solutions to di problem wey we wan solve. Classification and regression na supervised learning tasks.
  • Unsupervised, wey we no get labeled training data. Di main example of unsupervised learning na Clustering.

For dis section, we go show you one new type of learning problem wey no need labeled training data. Dis type get different kinds:

Example - computer game

Imagine say you wan teach computer how to play game, like chess, or Super Mario. For di computer to play di game, e go need predict di move wey e go make for each game state. Even though e fit look like classification problem, e no be - because we no get dataset wey get states and di actions wey follow. Even if we get data like chess matches or recording of people wey dey play Super Mario, e no go cover enough possible states.

Instead of looking for existing game data, Reinforcement Learning (RL) dey base on di idea of making di computer play plenty times and check di result. So, to use Reinforcement Learning, we need two things:

  • Environment and simulator wey go allow us play di game plenty times. Dis simulator go define all di game rules plus di possible states and actions.

  • Reward function, wey go tell us how well we do for each move or game.

Di main difference between other types of machine learning and RL be say for RL, we no dey know whether we go win or lose until di game finish. So, we no fit talk whether one move alone good or bad - we go only get reward when di game finish. Our goal na to design algorithms wey go help us train model for uncertain conditions. We go learn about one RL algorithm wey dem dey call Q-learning.

Lessons

  1. Introduction to reinforcement learning and Q-Learning
  2. Using a gym simulation environment

Credits

"Introduction to Reinforcement Learning" na work wey Dmitry Soshnikov write with ♥️


Disclaimer:
Dis document don dey translate wit AI translation service Co-op Translator. Even though we dey try make am accurate, abeg sabi say automated translations fit get mistake or no dey 100% correct. Di original document for im native language na di main correct source. For important information, e better make una use professional human translation. We no go fit take blame for any misunderstanding or wrong interpretation wey fit happen because of dis translation.