Skip to content

Implementations of reinforcement learning algorithms using Tensorflow and gym

Notifications You must be signed in to change notification settings

RoganInglis/RLAgents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RLAgents

Implementations of reinforcement learning algorithms in TensorFlow.

The aim is to implement each algorithm such that different Q/value/policy/representation networks can be plugged in for easy experimentation.

Currently Implemented

Q Learning Agents

  • DQN (DQNAgent) Paper

    • Implemented with options for:
      • Double Q learning Paper
      • Prioritised experience replay Paper
      • (To be implemented next) N-step Q learning
  • Current aim is to implement all of the DQN extensions used for Rainbow Paper

Requirements

Created and tested using:

  • Python 3.5
  • TensorFlow 1.4

Packages

  • tensorflow
  • numpy
  • gym
  • opencv-python
  • matplotlib
  • seaborn
pip install -r requirements.txt

Or for GPU TensorFlow:

pip install -r requirements-gpu.txt

Usage

To train on the CartPole-v0 environment:

python main.py

Additional command line arguments are detailed in main.py. This can be made to work with Atari with very minimal edits. CartPole is the default environment currently while this is being developed but the default will be switched to Atari once everything is implemented and tested.

Results

Mean test episode length during training on CartPole-v0 with double Q-learning and prioritised experience replay enabled (with minimal hyperparameter search performed):

Mean Episode Length

Notes

TODO

Reference

  1. Human Level Control Through Deep Reinforcement Learning
  2. Deep Reinforcement Learning with Double Q-Learning
  3. Prioritized Experience Replay
  4. Rainbow: Combining Improvements in Deep Reinforcement Learning
  5. Project structure

About

Implementations of reinforcement learning algorithms using Tensorflow and gym

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages