Skip to content

A novel A3C-based architecture for crawling in Rogue's dungeons with Deep Reinforcement Learning

License

Notifications You must be signed in to change notification settings

Francesco-Sovrano/Partitioned-A3C-for-RogueInABox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Partitioned A3C for RogueInABox

This software is a fork of:

This project has been tested on Debian 9. The setup.sh script installs the necessary dependencies and compiles Rogue. Before running setup.sh you must have installed virtualenv, python3-dev, python3-pip and make. For more details, please read our wiki and our paper.

The train.sh script starts the training.

During training the agent produces real-time statistics on the its perfomance. Among the statistics reported there are:

  • the success rate: the percentage of episodes in which the final state is reached (an equivalent of the accuracy)
  • the number of new tiles found during the exploration process
  • the number of steps taken to win an episode

In the folder "checkpoint" there are the tensorflow checkpoints of a 40kk steps training (with a success rate around 97.5%)

For each thread, the statistics are printed as the average of the last 200 episodes. The results.log file contains the average of the average of each thread. Through the options.py file you can change most of the architecture parameters, including: the number of threads to use, whether to use the GPU or not, the initial learning rate, the log directories and much more. The framework is composed of the following classes:

  • Application (train.py): the global A3C agent, which contains the methods for starting the local workers.
  • Trainer (trainer.py): a local A3C worker.
  • RMSPropApplier (rmsprop_applier.py): the class for asynchronously computing the gradient.
  • MultiAgentModel and A3CModel (multi_agent_model.py and a3c_model.py): within these classes the structure of the neural network is specified (LSTM, policy layer, value layer, CNN, FC, ecc..).
  • Environment (environment.py): class that handles the interface between the agent and the environment. The Environment class has been extended with RogueEnvironment (rogue_environment.py). RogueEnvironment contains methods for calculating rewards, obtaining statuses and statistics on episodes, etc.

Training Video (click to play)

Youtube video of the training

License

This software is a fork of:

Those parts of this software that are not inherited from the aforementioned repositories are released under the GPL v3.0 licence.

About

A novel A3C-based architecture for crawling in Rogue's dungeons with Deep Reinforcement Learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%