Code Monkey home page Code Monkey logo

gym-mountain-car's Introduction

gym-mountain-car

This repository is a Q-learning implementation of OpenAI Gym Mountain Car game.

The goal is reaching to the flag by using 3 different actions, including 'left', 'nothing', 'right'. However, the force is not enough to reach to the flag just by 'right' action and the agent must use the momentum of car.

How to use

Just copy-paste the mountain_car_v0.py to your project or clone this repository and run mountain_car_v0.py using python.

Results

The car reaches to the goal just after a few hundreds of episodes.

Episodes Output Output Output
Episode 200, 400, 600
Episode 800, 1000, 1200
Episode 1400, 1600, 1800
Episode 2000, 2200, 2400
Episode 2600, 2800, 3000
Episode 3200, 3400, 3600
Episode 3800, 4000, 4200
Episode 4400, 4600, 4800
Episode 5000, 5200, 5400
Episode 5600, 5800, 6000
Episode 6200, 6400, 6600
Episode 6800, 7000, 7200
Episode 7400, 7600, 7800
Episode 8000, 8200, 8400
Episode 8600, 8800, 9000
Episode 9200, 9400, 9600
Episode 10000, 10200, 10400

References

With special thanks to sentdex, An amazing Youtuber!

gym-mountain-car's People

Contributors

feknall avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

mohdsiddiq12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.