How To Create Your Own Reinforcement Learning Environments | Tutorial | Part 1

In this video I lay out how to design an OpenAI Gym compliant reinforcement learning environment, the Gridworld. Despite the simplicity, we will see many parallels with the Open AI Gym, which means you can just plug and play your agents that you’ve coded up for those environments.

The Gridworld is based on the environment out of Sutton & Barto, where an agent has to navigate a grid, from the entrance to the exit. Each step receives a reward of -1, except for the terminal step, which gives a reward of 0.

In part 1 we will code up the reinforcement learning environment, and in part 2, we’ll code up the main loop and the Q learning agent to navigate our Gridworld.

Check out the accompanying explanation over at
http://www.neuralnet.ai/designing-your-own-open-ai-gym-compatible-reinforcement-learning-environment/

#OpenAIGym #ReinforcementLearning #GridWorld

Code for this video is here:
https://github.com/philtabor/Youtube-Code-Repository/blob/master/ReinforcementLearning/Fundamentals/gridworld.py

Learn how to turn deep reinforcement learning papers into code:

Deep Q Learning:
https://www.udemy.com/course/deep-q-learning-from-paper-to-code/?couponCode=DQN-OCT-21

Actor Critic Methods:
https://www.udemy.com/course/actor-critic-methods-from-paper-to-code-with-pytorch/?couponCode=AC-OCT-21

Curiosity Driven Deep Reinforcement Learning
https://www.udemy.com/course/curiosity-driven-deep-reinforcement-learning/?couponCode=ICM-OCTOBER-21

Natural Language Processing from First Principles:
https://www.udemy.com/course/natural-language-processing-from-first-principles/?couponCode=NLP1-OCT-21Reinforcement Learning Fundamentals
https://www.manning.com/livevideo/reinforcement-learning-in-motion

Here are some books / courses I recommend (affiliate links):
Grokking Deep Learning in Motion: https://bit.ly/3fXHy8W
Grokking Deep Learning: https://bit.ly/3yJ14gT
Grokking Deep Reinforcement Learning: https://bit.ly/2VNAXql

Come hang out on Discord here:
https://discord.gg/Zr4VCdv

Website: https://www.neuralnet.ai
Github: https://github.com/philtabor
Twitter: https://twitter.com/MLWithPhil

Source of this AI Video

AI video(s) you might be interested in …