Skip to content

patrickvonplaten/TRexGameRL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains a private project applying Reinforcement learning for the TRex game provided by chromium

Installation:

  • chrome
  • chromedriver (sudo apt-get install chromium-chromedriver && sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver)
  • Tkinter (apt-get install python-tk, for pyenv users check this)
  • pip install -r requirements.txt

The motivation is to master the TRex game purely based on visual input in form of screenshots of the game. This way, the model has access to the same and only the same information a human play would have for the Game.

The DQN model architecture is taken from Playing Atari with Deep Reinforcement Learning.

Iteratively, the model was improved by implementing the duel networks architecture, prioritized experience replay and double q-learning.

An average score of ~800 (see python/plots/score_plot_trial19_mem_50k_lr_0.0001_decay_5000.png) is achieved by using a large memory of 50.000 and Adam optimization.

Using a smaller memory of only 12.000 with Adam only a score of ~400 could be achieved (see python/plots/score_plot_trial3_adam_12k_2nd.png).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published