Teach your AI how to walk | Solving BipedalWalker | OpenAIGym

Shiva Verma
6 min readMay 14, 2019
Image by ChianImage

In this blog, we are going to teach a simple AI how to walk, with the help of Reinforcement Learning. Let’s first briefly understand what is Reinforcement Learning and what is this AI, which we are going to train.

Reinforcement learning, Brief Intro

Reinforcement learning is a branch of Machine learning. The idea is, you have an agent and an environment. The agent takes actions and environment gives reward based on those actions, The goal is to teach the agent optimal behaviour in order to maximize the reward received by the environment.

Reinforcement learning

For example, have a look at the diagram. This maze represents our environment. Our purpose would be to teach the agent an optimal policy so that it can solve this maze. The maze will provide a reward to the agent based on the goodness of each action it takes. Also, each action taken by agent leads it to the new state in the environment.

About the AI

The AI which we are going to train is an OpenAIGym environment, And its name is BipedalWalker.

--

--