Coder Social home page Coder Social logo

rvdweerd / rl-experiments Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 487 KB

Reinforcement Learning experiments, comparing performance of Q-learning and Double Q-learning algorithms.

Python 100.00%
reinforcement-learning reinforcement-learning-algorithms q-learning double-q-learning gridworld-environment gym

rl-experiments's Introduction

This project compares the Vanilla Q-learning and Double Q-learning algorithms. Grid worlds (inherited classes from gym.Env with 4-dimensional action space NWSE) can be defined with various cell types:

  • Lava: reward -100 and episode terminates
  • Cliff: reward -100, episode continues from start position
  • Wall: reward -1, no position change
  • Regular: reward -1, regular position change

And various types of stochasticity:

  • State transition stochasticity: defines some probability of veering off to left/right when moving forward
  • Reward stochasticity: reward per step is [-12,+10] with equal probability (instead of deterministic -1)

Example experimental setups are in ./configs. Required Python packages are in environment.yaml. To reproduce results, run

python main.py [CONFIG_NAME.yaml]

Example experiment

Here are some results (200 seeds, 300 episodes per seed) for a simple maze with walls (black), lava (orange) and cliff (grey) cells. Start position in blue, goal position in green.

rl-experiments's People

Contributors

rvdweerd avatar

Watchers

 avatar  avatar

Forkers

liuqi8827

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.