Git Product home page Git Product logo

rl_openai's Introduction

Reinforcement Learning with OpenAI Gym

This repository aims to solve three basic challenges in OpenAI Gym with RL techniques.

Description

There are four different main files in this repository which are listed as follows.

  1. LunarLander.ipynb
  2. Mountain Car.ipynb
  3. Pendulum.ipynb
  4. Pendulum_Replay_Experince.ipynb

As their name suggest, each file is related to one specific RL problem. In fact, to solve these tasks different RL techniques were employed. The Lunar Lander problem was solved using Semi-gradient Expected Sarsa with experience replay, Mountain Car used Semi-gradient Sarsa with tile coding for linear features' construction. Furthermore, The Pendulum task was tackled with two approaches: The first one used Policy-gradient methods (Actor-Critic) without experience replay, sadly, this approach did not solved the challenge. The second approach used the same policy-gradient technique but with experience replay to increase stability during training and solve the challenge.

The file tiles3.py is a Tile Coding python implementation by Rich Sutton to create linear features for RL problems with function approximation.

Requirements

The following list provides the minimum requirements to run the project.

matplotlib >= 3.2.1
cv2 >= 3.4.0
numpy >= 1.18.1
tqdm >= 4.46.1
torch >= 1.5.0
gym >= 0.17.2

Usage

To run the files, just use Jupyter Notebook and run the cells of the file you want to see.

jupyter-notebook

For further description and explanation, please check the Notebooks.

The algorithms on this repository are based on the following notes

rl_openai's People

Contributors

mikes96 avatar

Stargazers

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