Skip to content

yuecideng/RL_Pytorch_SimpleCases

Repository files navigation

Introduction

This repository provides typical and pupolar reinforcement learning algorithms using Python and Pytorch, including Q-learning, Sarsa, DQN (Double-DQN,Dueling-DQN, DQN with Prioritized Experience Replay), DDPG and TD3.

Some simple environments are provided to test the performance of RL algorithms which are as follow:

  • maze and tic-tac for testing Q-learning and Sarsa
  • pendulum for testing DQN
  • robot for testing DDPG and TD3

Prerequisites

python 3.6
Pytorch 1.0
gym

Implementation

Usage

  • maze: python3 run_maze_RL.py --algorithm Q-learning # or Sarsa
  • tic-tac: python3 run_tictac_RL.py --algorithm Q-learning # or Sarsa
  • pendulum: python3 run_pendulum_DRL.py --double True --prioritized True --dueling True # True or False to select DQN algorithms
  • robot: python3 run_robot_DRL.py --algorithm TD3 # or DDPG

Acknowledgment

Some environments used in this repository are referenced from 莫烦 Python.

About

Simple Pytorch-based implementation of RL and DRL algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages