Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
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)
| Date | Stars |
|---|---|
| 2026-07-31 | 695 |
| 2026-08-01 | 694 |
| 2026-08-02 | 694 |
| 2026-08-06 | 694 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Deep Reinforcement Learning Algorithms


This repository will implement the classic deep reinforcement learning algorithms by using **PyTorch**. The aim of this repository is to provide clear code for people to learn the deep reinforcemen learning algorithms. In the future, more algorithms will be added and the existing codes will also be maintained.
## Current Implementations
- [x] Deep Q-Learning Network (DQN)
- [x] Basic DQN
- [x] Double Q network
- [x] Dueling Network Archtiecure
- [x] Deep Deterministic Policy Gradient (DDPG)
- [x] Advantage Actor-Critic (A2C)
- [x] Trust Region Policy Gradient (TRPO)
- [x] Proximal Policy Optimization (PPO)
- [ ] Actor Critic using Kronecker-Factored Trust Region (ACKTR)
- [x] Soft Actor-Critic (SAC)
## Update Info
:triangular_flag_on_post: **2018-10-17** - In this update, most of algorithms have been imporved and **add more experiments with plots** (except for DPPG). The **PPO** now supports **atari-games** and **mujoco-env**. The **TRPO** is much stable and can have better results!
:triangular_flag_on_post: **2019-07-15** - In this update, the installation for the openai baseline is no longer needed. I have intergated useful functions in the **rl__utils** module. DDPG is also re-implemented and support more results. README file has been modified. The code structure also has tiny adjustment.
:triangular_flag_on_post: **2019-07-26** - In this update, the revised repository will be public. In order to have a light size of the repository. I **rebuild** the repository and the previous version is deleted. But I will make a backup in the google driver.
:triangular_flag_on_post: **2019-11-13** - Change the code structure of the repo, all algorithms have been moved to `rl_algorithms/` folder. Add soft actor critic method, the expriments plots will be added soon.
## TODO List
- [ ] add prioritized experience replay.
- [x] in the future, we will not use openai baseline's pre-processing functions.
- [x] improve the **DDPG** - I have already implemented a pytorch Hindsight Experience Replay (HER) with DDPG, you chould check them [here](https://github.com/TianhongDai/hindsight-experience-replay).
- [ ] update pre-trained models in google driver (will update soon!).
## Requirments
- pytorch=1.0.1
- gym=0.12.5
- mpi4py
- mujoco-py
- opencv-python
- cloudpickle
## Installation
1. Install our `rl_utils` module:
```bash
pip install -e .
```
2. Install mujoco: please follow the instruction of [official website](https://github.com/openai/mujoco-py).
3. Install Atari and Box2d:
```bash
sudo apt-get install swig or brew install swig
pip install gym[atari]
pip install gym[box2d]
pip install box2d box2d-kengz
```
## Instruction
1. Train the agent (details could be found in each folder):
```
cd rl_algorithms/<target_algo_folder>/
python train.py --<arguments you need>
```
2. Play the demo:
```
cd rl_algorithms/<target_algo_folder>/
python demo.py --<arguments you need>
```
## Code Structures
1. **rl algorithms**:
- `arguments.py`: contain the parameters used in the training.
- `<rl-name>_agent.py`: contain the most important part of the reinforcement learning algorithms.
- `models.py`: the network structure for the policy and value function.
- `utils.py`: some useful function, such as **select actions**.
- `train.py`: the script to train the agent.
- `demo.py`: visualize the trained agent.
2. **rl_utils** module:
- `env_wrapper/`: contain the pre-processing function for the atari games and wrapper to create environments.
- `experience_replay/`: contain the experience replay for the off-policy rl algorithms.
- `logger/`: contain functions to take down log infos during training.
- `mpi_utils/`: contain the tools for the mpi training.
- `running_filter/`: contain the running mean filter functions to normalize the observation in the mujoco environments.
Excerpt of 6,108 characters
Read on GitHub25
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:ae3790a5f200fd1d, topic:deep-learning, topic:pytorch
matched fp:ae3790a5f200fd1d, topic:deep-reinforcement-learning, name:reinforcement learning, desc:reinforcement learning