Giter Club home page Giter Club logo

armed-bandit's Introduction

Armed Bandit πŸ±β€πŸ‘€

Motive

Project is aimed at demonstrating the multi-armed bandit reinforcement learning problem. To briefly explain it, you(the agent) are to maximize your score by selecting the best action out of the available actions. However you have no prior knowledge of which action is the best (unless of course you peek through the code😼).

Preview Screenshot (220)

Rules

  • There are 3 game modes.
  • Game is episodic, meaning your score is accumulated only in an episode.
  • An episode consists of 5 steps, or states.
  • The agent has 6 possible buttons to hit.
  • A button hit updates the score with the weight of the button and updates the action-weights of the agent

Preview-Episode[Receive State] Screenshot (219)

Game Modes

  • Demo: Manual mode, here user directly controls the button hits.
  • Custom: User creates a model which plays an episode autonomously.
  • Best: Out of all created models, the model with the highest score is selected and run on an episode.

Autonomous Agents

  • User created models consist of a map of actions to their respective weight values. The set of actions available are: {A,B,C,D,E,F}, each having individual weights.
  • The model, in training episodes, updates its weights by averaging the rewards it receives on every action. This is the sample-average action-value estimating method.
  • In testing runs, the model selects actions using a greedy policy. It checks its action value map and selects the action with the maximum return its learnt on previous episodes.
  • Model weights along with the score are stored in "playerweights.txt" in the executable directory. Format is [model_name] [score,...weights]. Example: Thors 23,0.2,0.4,3.9,1,0.5,2

Building from source

armed-bandit's People

Contributors

quinton11 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.