Giter VIP home page Giter VIP logo

utilsrl's Introduction

UtilsRL

UtilsRL is a reinforcement learning utility python package, which is designed for fast integration into other RL projects. Despite its lightweightness, it still provides a full set of functions needed for RL algorithms development.

Currently UtilsRL is maintained by researchers from LAMDA-RL group. Any bug report / feature request / improvement is appreciated.

Installation

You can install this package directly from pypi:

pip install UtilsRL

After installation, you may still need to configure some other dependencies based on your platform, such as PyTorch.

Features & Usage

We are still working on the docs, and the docs will be published as soon as possible.

Here we list some highlight features of UtilsRL:

  • Extremely easy-to-use and research friendly argument parsing. UtilsRL.exp.argparse supports several handy features for research:
    • loading arguments from both yaml, json, python files and command line
    • nested argument parsing
  • Well-implemented torch modules for Reinforcement Learning
    • common network structures: MLP, CNN, RNN, Attention, Ensemble Blocks and etc
    • policy networks with various output distributions
    • normalizers implemented in nn.Module, benefiting saving/loading by taking advantage of state_dict
  • Powerful experiment loggers.
  • Super fast Prioritized Experience Replay (PER) buffer. By binding c++-implemented data structures, we boost the efficiency of PER up to 10 times

We provide two examples, namely training PPO on mujoco tasks and training Rainbow on atari tasks as illustrations for integrating UtilsRL into your workflow (see examples/)

Acknowledgements

We took inspiration for module design from tianshou and Polixir OfflineRL.

We also thank @YuRuiii and @momanto for their participation in code testing and performance benchmarking.

utilsrl's People

Contributors

lyndonkong avatar mansicer avatar typoverflow 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.