Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magni84/gym_bandits
OpenAI gym environment for multi-armed bandits
https://github.com/magni84/gym_bandits
Last synced: about 1 month ago
JSON representation
OpenAI gym environment for multi-armed bandits
- Host: GitHub
- URL: https://github.com/magni84/gym_bandits
- Owner: magni84
- License: mit
- Created: 2020-02-13T13:25:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T15:09:57.000Z (over 1 year ago)
- Last Synced: 2024-05-09T21:26:11.902Z (about 2 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-deep-reinforcement-learning - magni84/gym_bandits
README
# Gym Bandits
A multi-armed bandits environment for Gymnasium.
## Installation instructions
Requirements: gymnasium and numpy
```
git clone https://github.com/magni84/gym_bandits.git
cd gym-gridworld
pip install -e .
```## Usage
```
import gymnasium as gym
import gym_banditsenv = gym.make('MultiArmedBandits-v0') # 10-armed bandit
env = gym.make('MultiArmedBandits-v0', nr_arms=15) # 15-armed bandit
```