Coder Social home page Coder Social logo

afcarl / openai-k-armed-bandits Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diegoalejogm/openai-k-armed-bandits

0.0 0.0 0.0 10 KB

OpenAI Gym Environment for the k Armed Bandits Reinforcement Learning Task

License: MIT License

Python 48.51% Jupyter Notebook 51.49%

openai-k-armed-bandits's Introduction

openai-k-armed-bandits

This repository contains an easy-to-use OpenAI Gym environment to train your agents with the famously known k-Armed-Bandits Reinforcement Learning task. You can check out a working example of an agent using this environment in my Reinforcement Learning Book Exercices Repository..

Install

There are two ways to install this project. The easiest procedure is using pip to download the project from PyPi by typing in your terminal:

pip install gym_armed_bandits

An alternative way is by downloading the repository directly and installing the package locally:

git clone gym_armed_bandits
cd gym_armed_bandits
pip install -e .

This second method allows you to develop on the repository and instantly see the changes when importing. This is useful when contributing to this repository.

Use

In your Python scripts the libraries

import gym
import gym_armed_bandits

and then load a specific environment by running

env = gym.make(<environment name>)

e.g.

env = gym.make('ten-armed-bandits-v0')

Currently the existing environments available in this project are:

  • three-armed-bandits-v0
  • five-armed-bandits-v0
  • ten-armed-bandits-v0

All of these environments have bandits with std=1 gaussian distributions.

The code is implemented in such a way that it is easy to add a new bandit.

License

MIT

openai-k-armed-bandits's People

Contributors

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