All Projects → marctuscher → Drqn Tensorflow

marctuscher / Drqn Tensorflow

Deep recurrent Q Learning using Tensorflow, openai/gym and openai/retro

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Drqn Tensorflow

Pytorch Rl
This repository contains model-free deep reinforcement learning algorithms implemented in Pytorch
Stars: ✭ 394 (+210.24%)
Mutual labels:  gym, dqn, openai-gym
Mushroom Rl
Python library for Reinforcement Learning.
Stars: ✭ 442 (+248.03%)
Mutual labels:  dqn, openai-gym
Ctc Executioner
Master Thesis: Limit order placement with Reinforcement Learning
Stars: ✭ 112 (-11.81%)
Mutual labels:  dqn, openai-gym
Super Mario Bros Ppo Pytorch
Proximal Policy Optimization (PPO) algorithm for Super Mario Bros
Stars: ✭ 649 (+411.02%)
Mutual labels:  gym, openai-gym
Deep Reinforcement Learning
Repo for the Deep Reinforcement Learning Nanodegree program
Stars: ✭ 4,012 (+3059.06%)
Mutual labels:  dqn, openai-gym
Deep Rl Keras
Keras Implementation of popular Deep RL Algorithms (A3C, DDQN, DDPG, Dueling DDQN)
Stars: ✭ 395 (+211.02%)
Mutual labels:  gym, dqn
Gym Anytrading
The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
Stars: ✭ 627 (+393.7%)
Mutual labels:  dqn, openai-gym
Autonomous-Drifting
Autonomous Drifting using Reinforcement Learning
Stars: ✭ 83 (-34.65%)
Mutual labels:  openai-gym, dqn
Deterministic Gail Pytorch
PyTorch implementation of Deterministic Generative Adversarial Imitation Learning (GAIL) for Off Policy learning
Stars: ✭ 44 (-65.35%)
Mutual labels:  gym, openai-gym
Dmc2gym
OpenAI Gym wrapper for the DeepMind Control Suite
Stars: ✭ 75 (-40.94%)
Mutual labels:  gym, openai-gym
Gym trading
Stars: ✭ 87 (-31.5%)
Mutual labels:  dqn, openai-gym
Rl algorithms
Structural implementation of RL key algorithms
Stars: ✭ 352 (+177.17%)
Mutual labels:  gym, dqn
Cartpole
OpenAI's cartpole env solver.
Stars: ✭ 107 (-15.75%)
Mutual labels:  dqn, openai-gym
Openaigym
Solving OpenAI Gym problems.
Stars: ✭ 98 (-22.83%)
Mutual labels:  dqn, openai-gym
Reinforcement Learning Kr
[파이썬과 케라스로 배우는 강화학습] 예제
Stars: ✭ 282 (+122.05%)
Mutual labels:  dqn, openai-gym
Rl Book
Source codes for the book "Reinforcement Learning: Theory and Python Implementation"
Stars: ✭ 464 (+265.35%)
Mutual labels:  gym, openai-gym
Explorer
Explorer is a PyTorch reinforcement learning framework for exploring new ideas.
Stars: ✭ 54 (-57.48%)
Mutual labels:  dqn, gym
TF2-RL
Reinforcement learning algorithms implemented for Tensorflow 2.0+ [DQN, DDPG, AE-DDPG, SAC, PPO, Primal-Dual DDPG]
Stars: ✭ 160 (+25.98%)
Mutual labels:  openai-gym, dqn
Rl Baselines Zoo
A collection of 100+ pre-trained RL agents using Stable Baselines, training and hyperparameter optimization included.
Stars: ✭ 839 (+560.63%)
Mutual labels:  gym, openai-gym
Torchrl
Pytorch Implementation of Reinforcement Learning Algorithms ( Soft Actor Critic(SAC)/ DDPG / TD3 /DQN / A2C/ PPO / TRPO)
Stars: ✭ 90 (-29.13%)
Mutual labels:  gym, dqn

DRQN-tensorflow

Deep Recurrent Q Learning using Tensorflow, openai/gym and openai/retro

This repository contains code for training a DQN or a DRQN on openai/gym Atari and openai/retro environments.

Note that training on Retro environments is completely experimental as of now and these environments have to be wrapped to reduce the action space to a more sensible subspace of all actions for each game. The wrapper currently implemented only makes sense for the SEGA Sonic environments.

Installation

You can install all dependencies by issuing following command:

pip install -r requirements.txt

This will install Tensorflow without GPU support. However, I highly recommend using Tensorflow with GPU support, otherwise training will take a very long time. For more information on this topic please see https://www.tensorflow.org/install/. In order to run the retro environments, you have to gather the roms of the games you want to play and import them: https://github.com/openai/retro#roms

Running

You can start training by:

python main.py --gym=gym --steps=10000000 --train=True --network_type=dqn --env_name=Breakout-v0

This will train a DQN on Atari Breakout for 10 mio observations. For more on command line parameters please see

python main.py -h

Visualizing the training process can be done using tensorboard by:

tensorboard --logdir=out

Pretrained models

A pretrained model for Breakout is available in pretrained_models

Result after training for 10mio steps (approx. 11 hours on GTX 1080 Ti)

Alt Text

References

  1. DQN-tensorflow
  2. Playing Atari with Deep Reinforcement Learning
  3. Playing FPS Games with Deep Reinforcement Learning
  4. Deep Recurrent Q-Learning for Partially Observable MDPs
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].