Coder Social home page Coder Social logo

dl's Introduction

dl

Deep Reinforcement Learning library based on PyTorch, OpenAI Gym, and gin config, and Tensorboard (for visualization and logging). The library is designed for research and fast iteration. It is highly modular to speed up the implementation of new algorithms and shorten iteration cycles.

Some key abstractions include:

  • Flexible data collection and storage for on-policy (rollouts) and off-policy (replay buffer) methods.
  • Code for evaluating and recording trained agents, as well as checkpointing and logging experiments.
  • Abstract interface for algorithms with a training loop suitable for both RL and supervised learning.

Implemented algorithms

Examples of how to launch experiments can be found here.

Installation

The code can be installed using docker or using pip.

Pip:

  1. In the top level directory, run pip install -e .

Docker:

  1. Install docker.
  2. Install x-docker, a wrapper around docker for running GUI applications inside a container.
  3. In the top level directory, build the docker image by running: ./build_docker.sh
  4. Launch the docker container by running: ./launch_docker.sh This will start a container and mount the code at /root/pkgs/dl.

Running Examples

  1. From inside the container, run: cd /root/pkgs/dl/examples/ppo (You can replace ppo with another exapmle algorithm)
  2. Run: ./train.sh This will create a log directory and start training with the default environment and hyperparameters. Pressing Ctrl-C will interrupt trianing and save the current model.
  3. In another terminal, run: tensorboard --logdir /path/to/log/directory

dl's People

Contributors

cbschaff avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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