Skip to content

Make a deep learning model learn to play the game Pong.

Notifications You must be signed in to change notification settings

mlkoenig/PongRL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PongRL

Pong Reinforcement Learning

A TensorFlow-based project to make a deep learning model learn to play the game Pong based on the paper "Playing Atari with Deep Reinforcement Learning" by Deepmind (Mnih et al., 2019).

The game environment is implemented with pygame and reconstructs the behavior of the Atari game.

Methods

  • Deep Deterministic Policy-Gradient (DDPG) Methods
  • Double Deep Q Networks (DDQN)
  • Deep Q Networks (DQN)
  • Experience Replay and Epsilon Greedy

Installation and Usage

Preferred Requirements: Python 3.9

The package can be installed with hatch or a virtual environment in the project's root directory:

python -m venv .venv
source .venv/bin/activate
pip install -e .

Run one of the experiments, e.g. DDQN:

python experiments/train_ddqn.py

Now you can locate the trained model and load it within main.py to see the performance versus a simple AI algorithm or play against the AI agent.

About

Make a deep learning model learn to play the game Pong.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages