Giter Club home page Giter Club logo

options's Introduction

Options

Implementation of SMDP Q-Learning Options framework.

The enviroment is similar to the one specified in the original paper.

Requirements : pygame,gym,numpy,argparse

Usage:

python2 run.py run.py [-h] [--alpha ALPHA] [--epsilon EPSILON] [--gamma GAMMA]
          [--episodes EPISODES] [--verbose] [--goal GOAL] [--render]
          [--show-policy] [--algo ALGO] [--fo]

ALPHA : learning rate [Default:0.001]
EPSILON : Epsilon value for epsilon-greedy exploration [Default:0.2]
GAMMA : Discount [Default:0.9]
--render : to render the game for last 10% of the episodes
--show-policy : to show policy at the end
--verbose : to print steps and rewards 
ALGO : O/IO (Options/Intra-options) [Default:O]
GOAL : G1/G2 (goal-1/goal-2) [Default:G1]
--fo : learn fresh options #not recommended

Example :To run a game with default settings on goal-1 and show learnt policy at the end

python run.py --verbose --show-policy

Reference : Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning

P.S : rewards have been scaled to 10

options's People

Contributors

ajithalbus avatar

Watchers

James Cloos 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.