MENU

Fun & Interesting

Teach AI To Play Snake - Reinforcement Learning Tutorial With PyTorch And Pygame (Part 1)

Patrick Loeber 118,714 lượt xem 4 years ago
Video Not Working? Fix It Now

In this Python Reinforcement Learning Tutorial series we teach an AI to play Snake! We build everything from scratch using Pygame and PyTorch. In this first part I'll show you the project and teach you some basics about Reinforcement Learning and Deep Q Learning.

✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer *

🚀🚀 Get monthly Python and ML Tips:
https://www.python-engineer.com/newsletter/

🚀🚀 SUPPORT ME ON PATREON:
https://www.patreon.com/patrickloeber

If you enjoyed this video, please subscribe to the channel!

More Resources about Deep Q Learning:
https://www.freecodecamp.org/news/diving-deeper-into-reinforcement-learning-with-q-learning-c18d0db58efe/
https://www.freecodecamp.org/news/an-introduction-to-deep-q-learning-lets-play-doom-54d02d8017d8/
https://towardsdatascience.com/how-to-teach-an-ai-to-play-games-deep-reinforcement-learning-28f9b920440a

Code:
https://github.com/patrickloeber/snake-ai-pytorch

You can find me here:
Website: https://www.python-engineer.com
Twitter: https://twitter.com/patloeber
GitHub: https://github.com/patrickloeber

Music: https://www.bensound.com/

#Python

----------------------------------------------------------------------------------------------------------
* This is a sponsored or an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

Comment