Coder Social home page Coder Social logo

rl-controller's Introduction

Robustness of Reinforcement Learning

0. Introduction

This is a project for studying the robustness of reinforcement learning controllers in classical control problems, for instance the Cart-Pole problem.

1. Initialising the environment

The reinforcement learning environment for this project is Gym, and the deep learning platform is Pytorch.

Install requirements packages:
pip install -r requirements.txt

2. Running a Demo

2.1 LQR controller

Running the following command:
python LQR_Visible.py
this demo demonstrates the LQR controller given a position set-point of one meter when the time count is larger than 200.

2.2 REINFORCE controller

Running the following command:
python Discrete_RL_Visible.py

this demo demonstrates the REINFORCE controller given a position set-point of one meter when the time count is larger than 200.
As the action space is discrete, this demo is applicabla to DQN controller as long as the model is loaded.

2.3 DDPG controller

Running the following command:
python Continuous_RL_Visible.py
this demo demonstrates the DDPG controller whose action space is continuous time, given a position set-point of one meter when the time count is larger than 200.

rl-controller's People

Contributors

blainwu avatar

Watchers

 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.