Giter VIP home page Giter VIP logo

rl-tfagents's Introduction

Reinforcement Learning with TF-Agents

Instructions

  1. Instructions to train a DQN agent in a multi-environment Breakout-v4 using TF-Agents is given below.

  2. The entire code is encapsulated in a single file named tfagent_dqn.py.

  3. Build the Docker image

    $ cd /path/to/rl-tfagents
    $ docker build --network=host -t rl-tfagents .
  4. Run the container

    # Run the container
    # Note: The source code is mapped from the local host into the 
    # docker container. Change the volume mapping as necessary.
    $ docker run -it --gpus all --network=host --env DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/kyber/workspaces/rl-tfagents/:/src/ rl-tfagents
    # Start RL TFAgent
    $ python3.7 tfagent_dqn.py
    # Start Tensorboard
    $ tensorboard --logdir . --port 6061 &

Features

  1. The code trains an agent to play Breakout-v4 environment.

  2. Multiple copies of training and evluation environments run in parallel to speed up the data collection (i.e., observations).

Others

  1. Several files implement other stand-alone reinforcement learning algorithms:
  • policy_gradient.py: policy gradient algorithm
  • q_value_iteration.py: Q-value iteration and Q-value learning
  • tf_dqn.py: deep Q-learning in TensorFlow

rl-tfagents's People

Contributors

adaickalavan avatar

Stargazers

 avatar

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.