Giter VIP home page Giter VIP logo

lunarlander-v2's Introduction

Capstone project - LunarLander-v2

Problem statement

LunarLander-v2 is an environment in OpenAI's gym package. The aim is to learn an agent to guide a space vehicle from starting point to the landing pad without crashing. The state space is R8 and there are four possible actions { do nothing, fire left orientation engine, fire main engine, fire right orientation engine }.

Software requirements

  • python 2.7
  • numpy
  • OpenAI's gym package
  • Keras with tensorflow or theano

Soft dependency - no need to install in the standard way

  • Keras-rl package - required for running the high benchmark agent.

Setting up the project :

$ git clone https://github.com/matthiasplappert/keras-rl.git

$ git clone https://github.com/dennisfrancis/LunarLander-v2.git

$ cd keras-rl

$ git am < ../LunarLander-v2/keras-rl-testrun-fix.patch   # Apply a patch for keras-rl to work with the project

$ cd ../LunarLander-v2/src

$ ln -s ../../keras-rl/rl rl   # create a symlink to rl dir of keras-rl to src dir

Running the agents

$ cd src                          # Go to source code directory

$ rm -rf ../monitor               # Required only if you have run some of the agents before

$ python run_random_agent.py      # To run random agent or low benchmark

$ python run_high_benchmark.py    # To run high benchmark agent

$ python run_basic_dqn.py         # To run basic DQN agent

$ python run_full_dqn.py          # To run improved DQN agent

Logs and plots

Logs and plots will go into log subdir.

lunarlander-v2's People

Contributors

dennisfrancis avatar

Watchers

James Cloos avatar

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.