Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1.12 KB

File metadata and controls

22 lines (11 loc) · 1.12 KB

Training Mountain Car to Escape

Lab Assignment from AI for Beginners Curriculum.

Task

Your goal is to train the RL agent to control Mountain Car in OpenAI Environment.

Mountain Car

The Environment

Mountain Car environment consists of the car trapped inside a valley. Your goal is to jump out of the valley and reach the flag. The actions you can perform are to accelerate to the left, to the right, or do nothing. You can observe position of the car along x-axis, and velocity.

Stating Notebook

Start the lab by opening MountainCar.ipynb

Takeaway

You should learn throughout this lab that adopting RL algorithms to a new environment is often quite straightforward, because the OpenAI Gym has the same interface for all environments, and algorithms as such do not largely depend on the nature of the environment. You can even restructure the Python code in such a way as to pass any environment to RL algorithm as a parameter.