Giter Club home page Giter Club logo

dyna-q's Introduction

Dyna-Q

Solving Dyna Maze problem from example 8.1 of Richard S Sutton's RL Book using Dyna-Q algorithm

Input

The following 6X9 maze is used as environment.

Hyper parameters

start = (2,0)

goal = (0,8)

gamma = 0.95

alpha = 0.1

epsilon = 0.1

Output

With different number of planning steps, the number of steps required for each episode is given by the following figure.

The above figure shows learning curves from on experiment in which Dyna-Q agents were applied to the maze task. The initial action values were zero, the step-size parameter was alpha = 0.1, and the exploration parameter was epsilon = 0.1. When selecting greedily among actions, ties were broken randomly. The agents varied in the number of planning steps, n, they performed per real step. For each n, the curves show the number of steps taken by the agent to reach the goal in each episode. After the first episode, performance improved for all values of n, but much more rapidly for larger values. Recall that the n = 0 agent is a non-planning agent, using only direct reinforcement learning (one-step tabular Q-learning). This was by far the slowest agent on this problem, despite the fact that the parameter values were optimized for it. The non-planning agent took about 20 episodes to reach the optimal performance, whereas the n = 5 agent, and n=50 agent took only about 3 episodes.

dyna-q's People

Contributors

shivakumar-tekumatla 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.