Skip to content

Reinforcement learning on OpenAI's mountain car

Notifications You must be signed in to change notification settings

m3ller/mountaincar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 

Repository files navigation

mountaincar

Attempting to get the network to learn to win OpenAI's MountainCar game.

Game premise: a car initially starts at the bottom of a valley and the goal is to get this car from the valley to the top of the mountain. The car does not have enough power to reach the top of the mountain directly, instead it needs to build momentum in the valley before attempting to travel to the top.

Code Overview

Solve game with reinforcement learning. There are two neural networks that are being optimized at the same time - the policy and the value networks.

Policy network: determines the action to take given the current environment input. (eg. Given that the car is moving at velocity x, located at height y, should the car be pushed left, right, or be given no push at all?)

Value network: determines the value of an action with respect to the entire game. (eg. A seemingly "bad" action in the short-term may be a cruical and worthwhile action in the long-term.)

About

Reinforcement learning on OpenAI's mountain car

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages