GithubHelp home page GithubHelp logo

rlalgcomparison's Introduction

RLalgcomparison

Comparison of different reinforcement learning algorithms on different game environments.

Simulation

To run an algorithm on a particular environment, simply run python .\test_algorithm.py --task "Twenty48_instert_version" e.g. to run the dqn algorithm for the Twenty48stoch-v0 environment run python .\test_dqn.py --task "Twenty48stoch-v0".

Versions

Twenty48stoch-v0

The standard implementation for a game of 2048 (stochastic environment).

Twenty48determ-v0

The same tile movement mechanics as v0 but all randomness removed (deterministic environment).

Tensorboard Log

To access analytics relating to the training efficiency of an algorithm on a particular version run tensorboard --logdir .\log\Twenty48_instert_version\insert_algorithm e.g. to access the analysis for the dqn algorithm for the Twenty48stoch-v0 environment run tensorboard --logdir .\log\Twenty48stoch-v0\dqn.

Reward Function

The reward is calculated as per the standard implementation of 2048. After a move, the resulting tile values from the newly merged tiles are summed and that becomes the reward for that step. Additionally, any move that does not change the state is rewarded with a negative reward (-0.1).

Manual Testing

A file called manual_instance.py is provided to easily test the functionality of the game environment.

rlalgcomparison's People

Contributors

riley-ball avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.