Coder Social home page Coder Social logo

kochlisgit / reinforcement-learning-algorithms Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 471 KB

This project focuses on comparing different Reinforcement Learning Algorithms, including monte-carlo, q-learning, lambda q-learning epsilon-greedy variations, etc.

Python 100.00%
exploration-exploitation epsilon-greedy markov-chains monte-carlo q-learning approximation-algorithms dynamic-programming q-lambda thomson-sampling ucb1

reinforcement-learning-algorithms's Introduction

Reinforcement-Learning-Algorithms

This project focuses on comparing different Reinforcement Learning Algorithms. I have implemented 3 custom (Openai-Gym like) environments to test my algorithms:

  1. Tic-Tac-Toe (The classical tic-tac-toe game)
  2. Frozen Lake (Custom implementation of the openai-gym frozen lake)
  3. Multi-Bandit-Army (Exploration & Exploitation of the best-winning-chance fruit machine)

#Exploration - Exploitation Algorithms

Epsilon Greedy

The agent explores every possible action with a small probability, but most often exploits the best action: https://www.ijntr.org/download_data/IJNTR06090006.pdf

Decaying Epsilon Greedy

The agent starts by exploring every possible action with very high initial probability, however, this probability decays over the time. This is an improvement of Epsilon-Greedy algorithm: http://tokic.com/www/tokicm/publikationen/papers/AdaptiveEpsilonGreedyExploration.pdf

Initial Optimistic Values

Initially, all actions are considered to be the best. While the agent always exploits the best possible action from a state, the best action will always tend to have the highest mean reward: https://ieeexplore.ieee.org/document/8167915

Upper Confidence Bound (UCB)

This tutorial explains very well how this algorithm works and why it is superior to epsilon greedy: https://www.geeksforgeeks.org/upper-confidence-bound-algorithm-in-reinforcement-learning/

Thompson Sampling (or Bayesian Sampling)

Probably one of the best exploration-exploitation algorithm. However, It is rarely used due to its difficulty in the implementation: https://proceedings.neurips.cc/paper/2011/file/e53a0a2978c28872a4505bdb51db06dc-Paper.pdf

reinforcement-learning-algorithms's People

Contributors

kochlisgit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.