GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mlosch/python-deeprltetris: Simple framework implementing deep reinforcement learning within a tetris environment.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
img
img
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
start_game.py
start_game.py
 
 
start_rl.py
start_rl.py
 
 

Repository files navigation

python-deeprltetris

Implements the simplest deep reinforcement learner for Tetris based on the Google DeepMind paper Playing Atari with Deep Reinforcement Learning including

Requirements

  • pyglet
  • theano
  • lasagne

How To Run

  • Training an agent:
    • Simply type python start_rl.py
    • Hyperparameters can be adjusted in the same file line 71. Please consult the Google DeepMind paper for further information on these parameters:
      • learningrate
      • discountfactor
      • epsilon
      • minepsilong
      • depsilong
    • Withing start_rl.py, the training method can be chosen. See lib/Learning.py for how to instantiate:
      • Deep Q Learner (default)
      • Q-Learner
      • SarsaLearner
      • SarsaLambdaLearner
  • Continue training:
    • The script start_rl.py automatically looks for policies of name policy-*.pickle and continues the most recent by default.
  • Watch an agent play:
    • Change the variable DRAW within start_rl.py to True.
  • Adjust the Tetris environment within start_rl.py and the type of blocks in lib/Shape.py
    • Note that the classical Tetris environment (board size of 14x20 and classical block types) are very difficult to get to convergence as the possibility of scoring is extremely small.

Acknowledgements

The Tetris framework was originally created by Charles Leifer.

Visit https://github.com/coleifer/tetris

The deep reinforcement learning code by Nathan Sprague inspired the implementation for this project.

Visit https://github.com/spragunr/deep_q_rl

About

Simple framework implementing deep reinforcement learning within a tetris environment.

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.