All Projects → Kyushik → Drl

Kyushik / Drl

Repository for codes of 'Deep Reinforcement Learning'

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Drl

Deep Reinforcement Learning Algorithms
31 projects in the framework of Deep Reinforcement Learning algorithms: Q-learning, DQN, PPO, DDPG, TD3, SAC, A2C and others. Each project is provided with a detailed training log.
Stars: ✭ 167 (-2.91%)
Mutual labels:  deep-reinforcement-learning, dqn
Deeprl algorithms
DeepRL algorithms implementation easy for understanding and reading with Pytorch and Tensorflow 2(DQN, REINFORCE, VPG, A2C, TRPO, PPO, DDPG, TD3, SAC)
Stars: ✭ 97 (-43.6%)
Mutual labels:  deep-reinforcement-learning, dqn
Parl Sample
Deep reinforcement learning using baidu PARL(maze,flappy bird and so on)
Stars: ✭ 37 (-78.49%)
Mutual labels:  deep-reinforcement-learning, dqn
Pygame Learning Environment
PyGame Learning Environment (PLE) -- Reinforcement Learning Environment in Python.
Stars: ✭ 828 (+381.4%)
Mutual labels:  pygame, deep-reinforcement-learning
Easy Rl
强化学习中文教程,在线阅读地址:https://datawhalechina.github.io/easy-rl/
Stars: ✭ 3,004 (+1646.51%)
Mutual labels:  deep-reinforcement-learning, dqn
Slm Lab
Modular Deep Reinforcement Learning framework in PyTorch. Companion library of the book "Foundations of Deep Reinforcement Learning".
Stars: ✭ 904 (+425.58%)
Mutual labels:  deep-reinforcement-learning, dqn
Ml In Tf
Get started with Machine Learning in TensorFlow with a selection of good reads and implemented examples!
Stars: ✭ 45 (-73.84%)
Mutual labels:  deep-reinforcement-learning, dqn
Autonomous Learning Library
A PyTorch library for building deep reinforcement learning agents.
Stars: ✭ 425 (+147.09%)
Mutual labels:  deep-reinforcement-learning, dqn
Reinforcement Learning
🤖 Implements of Reinforcement Learning algorithms.
Stars: ✭ 104 (-39.53%)
Mutual labels:  deep-reinforcement-learning, dqn
Torchrl
Highly Modular and Scalable Reinforcement Learning
Stars: ✭ 102 (-40.7%)
Mutual labels:  deep-reinforcement-learning, dqn
Pytorch Rl
Deep Reinforcement Learning with pytorch & visdom
Stars: ✭ 745 (+333.14%)
Mutual labels:  deep-reinforcement-learning, dqn
Minimalrl
Implementations of basic RL algorithms with minimal lines of codes! (pytorch based)
Stars: ✭ 2,051 (+1092.44%)
Mutual labels:  deep-reinforcement-learning, dqn
Elegantrl
Lightweight, efficient and stable implementations of deep reinforcement learning algorithms using PyTorch.
Stars: ✭ 575 (+234.3%)
Mutual labels:  deep-reinforcement-learning, dqn
Minecraft Reinforcement Learning
Deep Recurrent Q-Learning vs Deep Q Learning on a simple Partially Observable Markov Decision Process with Minecraft
Stars: ✭ 33 (-80.81%)
Mutual labels:  deep-reinforcement-learning, dqn
Mushroom Rl
Python library for Reinforcement Learning.
Stars: ✭ 442 (+156.98%)
Mutual labels:  deep-reinforcement-learning, dqn
Deep Q Learning
Minimal Deep Q Learning (DQN & DDQN) implementations in Keras
Stars: ✭ 1,013 (+488.95%)
Mutual labels:  deep-reinforcement-learning, dqn
Pytorch Rl
This repository contains model-free deep reinforcement learning algorithms implemented in Pytorch
Stars: ✭ 394 (+129.07%)
Mutual labels:  deep-reinforcement-learning, dqn
Reinforcement Learning Algorithms
This repository contains most of pytorch implementation based classic deep reinforcement learning algorithms, including - DQN, DDQN, Dueling Network, DDPG, SAC, A2C, PPO, TRPO. (More algorithms are still in progress)
Stars: ✭ 426 (+147.67%)
Mutual labels:  deep-reinforcement-learning, dqn
Deep Reinforcement Learning With Pytorch
PyTorch implementation of DQN, AC, ACER, A2C, A3C, PG, DDPG, TRPO, PPO, SAC, TD3 and ....
Stars: ✭ 1,345 (+681.98%)
Mutual labels:  deep-reinforcement-learning, dqn
Deep Rl Tensorflow
TensorFlow implementation of Deep Reinforcement Learning papers
Stars: ✭ 1,552 (+802.33%)
Mutual labels:  deep-reinforcement-learning, dqn

DRL

Introduction

This repository is the codes for Deep Reinforcement Learning
I verified my codes with games. The games are made with pygame. I made the games or I modified them to apply for DRL.

Also, environments, which are made by Unity ML-agents, are in Unity_ML_Agent Repository


Performance of each algorithm that I implemented are as follows (verified with Breakout).

Performance

Result

Youtube Link of Playing Breakout with NoisyNet DQN

I set up the DRL code as follows.

  1. Human-level Control Through Deep Reinforcement Learning (DQN)
  2. Deep Reinforcement Learning with Double Q-Learning (DDQN)
  3. Prioritized Experience Replay (PER)
  4. Dueling Network Architecture for Deep Reinforcement Learning (Dueling DQN)
  5. Noisy Networks for Exploration (NoisyNet DQN)
  6. A Distributional Perspective on Reinforcement Learning (C51)
  7. Learning to Predict by the Methods of Temporal Differences (N-step DQN)
  8. Deep Recurrent Q-Learning for Partially Observable MDPs (DRQN)
  9. Distributional Reinforcement Learning with Quantile Regression(QR-DQN)
  10. Implicit Quantile Networks for Distributional Reinforcement Learning(IQN)
  11. Curiosity-driven Exploration by Self-supervised Prediction (ICM)
  12. Exploration by Random Network Distillation(RND)

This is the PPT file for the description of DQN codes that I implemented.

The description of DRL algorithms

Description of algorithms link



Environment

Software

  • Windows7 (64bit)
  • Python 3.6.5
  • Anaconda 4.2.0
  • Tensorflow-gpu 1.12.0
  • pygame 1.9.3
  • opencv3 3.1.0

Hardware

  • CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHZ

  • GPU: GeForce GTX 1080TI

  • Memory: 16GB



Implementation

The sample code for my environment is Environment_sample.py

# This is sample code for Deep Reinforcement Learning testing environment 

# Import modules
import sys 
import numpy as np
import random

# Import games
sys.path.append("DQN_GAMES/")

# add as game the one that you want to play!! 
import pong as game
import dot  
import dot_test  
import tetris  
import wormy
import breakout

# Get Number of action and name of game from the game code
Num_action = game.Return_Num_Action()
game_name = game.ReturnName()

# Get game state class from game code
game_state = game.GameState()

while True:
    # Choose random action
    action = np.zeros([Num_action])
    action[random.randint(0, Num_action - 1)] = 1.0

    # You can get next observation, reward and terminal after action
    observation_next, reward, terminal = game_state.frame_step(action)

You can run the game with random action using this code!!

Please check that you made the folder for saved variables

checkpoint = tf.train.get_checkpoint_state("saved_networks_DQN")

Then you are ready to implement the code! 😆



Games

Most of the games are made with python and pygame!

The codes are easy to understand and variables are easy to understand.

So fix the code as you want!! 😆

Description of the games

Specific description of games

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