Based on PARL, we provide a simple example of the DQN algorithm.
- Paper: DQN in Human-level Control Through Deep Reinforcement Learning
Performance of DQN playing CartPole-v0
- paddlepaddle>=2.0.0
- parl>=2.1.1
- gym
- pygame
# To train a model for CartPole-v0 game
python train.py
For DQN variants such as Double DQN and Dueling DQN, please check here