GithubHelp home page GithubHelp logo

lunar-lander's Introduction

Lunar Lander

INTRODUCTION

Lunar Lander is about landing a spacecraft on a specific landing area on moon safely.
Gymnasium is a open-source toolkit for reinforcement learning, which contains various reinforcement learning environments and provides a standard development procedure of reinforcement learning. It originates from OpenAI's gym. Refer to their website for more information.

METHOD

The actions of spacecraft contain:

  • do nothing
  • fire left orientation engine
  • fire main engine
  • fire right orientation engine

The rules of award:

  • increased the closer the lander is to the landing pad
  • increased the slower the lander is moving
  • increased the more the lander is horizontal
  • increased by 10 points for each leg that is in contact with the ground
  • decreased by 0.03 points each frame a side engine is firing
  • decreased by 0.3 points each frame the main engine is firing

The spacecraft is trained by DDPG(Deep Deterministic Policy Gradient), which is a extension of DQN(Deep Q-Network) aiming to solve the problem of continuous control.

ENVIRONMENT

The core dependencies are listed below.

  • python 3.11
  • torch 2.0.1+cu117
  • gymnasium 0.29.0
  • tensorboardX 2.6.1
  • cost of GPU is around 1GB

TRAINING

python main.py

TESTING

python load.py

There is a ready-to-use model in this repo. Run the command above to see the result.

DEMO

rl-video25.18.7.57-episode-0.mp4

ACKNOWLEDGEMENT

The code is mainly based on drl-ddpg-lunar-lander. Thanks the aurther for the excellent work.

AND

Feel free to raise an issue if you encounter any problem :).

lunar-lander's People

Contributors

ruiyang-061x avatar

Watchers

 avatar  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.