All Projects → rohitgirdhar → Deep-Q-Networks

rohitgirdhar / Deep-Q-Networks

Licence: other
Implementation of Deep/Double Deep/Dueling Deep Q networks for playing Atari games using Keras and OpenAI gym

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Deep-Q-Networks

Pytorch A2c Ppo Acktr Gail
PyTorch implementation of Advantage Actor Critic (A2C), Proximal Policy Optimization (PPO), Scalable trust-region method for deep reinforcement learning using Kronecker-factored approximation (ACKTR) and Generative Adversarial Imitation Learning (GAIL).
Stars: ✭ 2,632 (+6826.32%)
Mutual labels:  deep-reinforcement-learning, atari
Fruit-API
A Universal Deep Reinforcement Learning Framework
Stars: ✭ 61 (+60.53%)
Mutual labels:  deep-reinforcement-learning, atari
yarll
Combining deep learning and reinforcement learning.
Stars: ✭ 84 (+121.05%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Finrl Library
FinRL: Financial Reinforcement Learning Framework. Please star. 🔥
Stars: ✭ 3,037 (+7892.11%)
Mutual labels:  deep-reinforcement-learning, openai-gym
mmn
Moore Machine Networks (MMN): Learning Finite-State Representations of Recurrent Policy Networks
Stars: ✭ 39 (+2.63%)
Mutual labels:  deep-reinforcement-learning, atari
Hands On Intelligent Agents With Openai Gym
Code for Hands On Intelligent Agents with OpenAI Gym book to get started and learn to build deep reinforcement learning agents using PyTorch
Stars: ✭ 189 (+397.37%)
Mutual labels:  deep-reinforcement-learning, openai-gym
a3c-super-mario-pytorch
Reinforcement Learning for Super Mario Bros using A3C on GPU
Stars: ✭ 35 (-7.89%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Treeqn
Stars: ✭ 77 (+102.63%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Deep-Reinforcement-Learning-CS285-Pytorch
Solutions of assignments of Deep Reinforcement Learning course presented by the University of California, Berkeley (CS285) in Pytorch framework
Stars: ✭ 104 (+173.68%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Deep-Reinforcement-Learning-for-Automated-Stock-Trading-Ensemble-Strategy-ICAIF-2020
Live Trading. Please star.
Stars: ✭ 1,251 (+3192.11%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Reinforcementlearning Atarigame
Pytorch LSTM RNN for reinforcement learning to play Atari games from OpenAI Universe. We also use Google Deep Mind's Asynchronous Advantage Actor-Critic (A3C) Algorithm. This is much superior and efficient than DQN and obsoletes it. Can play on many games
Stars: ✭ 118 (+210.53%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Pytorch-RL-CPP
A Repository with C++ implementations of Reinforcement Learning Algorithms (Pytorch)
Stars: ✭ 73 (+92.11%)
Mutual labels:  openai-gym, atari
Hierarchical Actor Critic Hac Pytorch
PyTorch implementation of Hierarchical Actor Critic (HAC) for OpenAI gym environments
Stars: ✭ 116 (+205.26%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Deep Reinforcement Learning Gym
Deep reinforcement learning model implementation in Tensorflow + OpenAI gym
Stars: ✭ 200 (+426.32%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Cs234 Reinforcement Learning Winter 2019
My Solutions of Assignments of CS234: Reinforcement Learning Winter 2019
Stars: ✭ 93 (+144.74%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Deep-Reinforcement-Learning-With-Python
Master classic RL, deep RL, distributional RL, inverse RL, and more using OpenAI Gym and TensorFlow with extensive Math
Stars: ✭ 222 (+484.21%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Async Deeprl
Playing Atari games with TensorFlow implementation of Asynchronous Deep Q-Learning
Stars: ✭ 44 (+15.79%)
Mutual labels:  deep-reinforcement-learning, openai-gym
Noreward Rl
[ICML 2017] TensorFlow code for Curiosity-driven Exploration for Deep Reinforcement Learning
Stars: ✭ 1,176 (+2994.74%)
Mutual labels:  deep-reinforcement-learning, openai-gym
deep rl acrobot
TensorFlow A2C to solve Acrobot, with synchronized parallel environments
Stars: ✭ 32 (-15.79%)
Mutual labels:  deep-reinforcement-learning, openai-gym
FinRL Podracer
Cloud-native Financial Reinforcement Learning
Stars: ✭ 179 (+371.05%)
Mutual labels:  deep-reinforcement-learning, openai-gym

Deep Q Learning for playing Atari Games

Sample results

Simple DQN model, seen around 10M frames (iterations)

Simple DQN playing Atari Enduro-v0 | Simple DQN playing Atari Pong-v0

Training models

Simple DQN [1]

python dqn_atari.py \
  --env Enduro-v0 \
  --gpu 0 \
  --model convnet \
  --train_policy epgreedy \
  --std_img \
  --optimizer adam \
  --learning_rate 0.0001

Dueling DQN [4]

Simply replace --model convnet with --model dueling_convnet in the above command. Also try out other network architectures in deeprl/networks.py.

Performance plots

Following curves compare the dueling (yellow), double (green) and simple (blue) deep Q networks.

Episode length

Episode length

Total Reward over 20 episodes

Total Reward

Loss

Loss

References and Acknowledgements

This work was done as a course assignment for the CMU Deep RL course, so thanks to the instructors for guidance and providing starter code. Also thanks to Achal for hyperparameter suggestions.

[1] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.

[2] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.

[3] Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double q-learning. 2016.

[4] Ziyu Wang, Tom Schaul, Matteo Hessel, Hado van Hasselt, Marc Lanctot, and Nando de Freitas. Dueling network architectures for deep reinforcement learning. arXiv preprint arXiv:1511.06581, 2015.

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