Git Product home page Git Product logo

irl's Introduction

Incremental reinforcement learning with prioritized sweeping for dynamic environments

This repo contains code accompaning the paper: Zhi Wang, Chunlin Chen, Han-Xiong Li, Daoyi Dong, and Tzyh-Jong Tarn, "Incremental reinforcement learning with prioritized sweeping for dynamic environments", IEEE/ASME Transactions on Mechatronics, 2019. It contains code for running the incremental learning tasks with a discrete state-action space, including the simple maze and complex maze domains, as stated in the paper.

Dependencies

This code requires the following:

  • python 3.*
  • gym

Data

  • For the simple maze domain, data is generated from myrllib/envs/simple_maze.py
  • For the complex maze domain, data is generated from myrllib/envs/complex_maze.py

Usage

  • For example, to run the code in the simple maze domain with epsilon-greedy strategy, just run the bash script ./simple_maze_epsilon.sh, also see the usage instructions in the script and main.py
  • When getting the results in the folder output/*, plot the results using data_process.py. For example, the results for ./simple_maze_epsilon.sh is as follow: experimental results for simple maze with epsilon-greedy strategy

Also, the results for other bash scripts are shown in exp/*

Contact

To ask questions or report issues, please open an issue on the issues tracker, or email to [email protected].

irl's People

Contributors

heyuanmingong avatar

Stargazers

 avatar 1ce avatar Hongyu Ding avatar  avatar Dev avatar Kun Chu avatar  avatar

Watchers

James Cloos avatar

irl's Issues

I want to know if it is possible to do incremental learning with an agent trained in reinforcement learning

I am currently using stable-baseline3 for learning~ Then I want to do incremental learning, how can I do it
I currently have two ideas. The first one is to rewrite the training code when using stable-baseline3 training, but it is not very smooth.
The second is that I use the trained agent for training, but I don't know how to do it.
The link is for all my training files, and the files after training
https://drive.google.com/drive/folders/1-_BLVhTIYaK961Z2sKVcpCOA5-l7jsjA?usp=drive_link

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.