Coder Social home page Coder Social logo

rl's Introduction

torch_rl : A starting Reinforcement Learning PyTorch Library

Torch_rl is a (small) Sequential Learning (and Reinforcement Learning) library for PyTorch that can be used to:

  • learn policies over openAI Gym environments
  • learn policies with DQN or Policy Gradient techniques (more to come)
  • Model complex environements (not only reward-based environment)

Note that the library will evolve during the next months.

Gerating Documentation

Go to the docs directory then: PYTHONPATH=.. make html. The generated HTML file are under _build.html/index.html

Key packages

  • the torch_rl.core package contains core classes. A classical RL environment is modeled using a triplet:

    • World: describes the physics of the world
    • Sensor: describes a (partial) view over the world.
    • Task: describes the task to solve. It can basically be defined through a Reward function
  • the Env class is used to cast a triplet (World,Sensor,Task) to an openAI Gym Environment

  • the torch_rl.core.sensors propose some basic tools for building high-level sensors from other sensors

  • the torch_rl.core.spaces propose complex action and observation spaces

  • the torch_rl.policies package contains policies definitions

    • Policy is the classical (non-learning) definition of a policy.
  • the torch_rl.learners contains learning algorithms

    • DeepQN
    • PolicyGradient
    • BatchPolicyGradient (where multiple trajectories are sampled simultaneously)
    • RecurrentPolicyGradient
    • (...more to come...)
  • the tutorials directory contains simple examples

rl's People

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.