Giter Site home page Giter Site logo

michaelfeil / skyjo_rl Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 3.73 MB

Multi-Agent Reinforcement Learning Environment for the card game SkyJo, compatible with PettingZoo and RLLIB

Home Page: https://michaelfeil.eu/skyjo_rl/

License: MIT License

Jupyter Notebook 97.88% Python 2.12%
reinforcement-learning mutli-agent rllib pettingzoo

skyjo_rl's Introduction

skyjo_rl

Multi-Agent Reinforcement Learning Environment for the card game SkyJo, compatible with PettingZoo and RLLIB

codecovCI pytest

Read the docs

Contributors Forks Stargazers Issues MIT License LinkedIn

Project Organization

Github Repository

├── LICENSE
├── Makefile                <- Makefile with commands like `make data` or `make train`
├── README.md               <- The top-level README for developers using this project.
│
├── docs                    <- Docs HTMLs, see Sphinx [docs](https:/michaelfeil.github.io/skyjo_rl)
│
├── models                  <- Trained and serialized models, model predictions, or model summaries
│
├── notebooks               <- Jupyter notebooks. 
├── requirements.txt                        <- requirements for the rlskyjo
├── requirements_dev.txt                    <- requirements for developers
├── rlskyjo                                    
│   ├── environment
│   │   ├── skyjo_env.py
│   │   └── vanilla_env_example.py
│   ├── game
│   │   ├── sample_game.py
│   │   └── skyjo.py
│   ├── models
│   │   ├── action_mask_model.py
│   │   ├── random_admissible_policy.py
│   │   └── train_model_simple_rllib.py
│   └── utils.py
├── setup.py                                <- makes project pip installable (pip install -e .) so skyjo_rl can be imported
├── test_environment.py
├── tests                                   <- Unittests
└── tox.ini                                 <- tox file with settings for running tox; see tox.readthedocs.io

PYPI Install

conda create --name skyjo python=3.8 pip
conda activate skyjo
pip install rlskyjo

Developer Install

git clone https://github.com/michaelfeil/skyjo_rl.git
conda create --name skyjo python=3.8 pip
conda activate skyjo
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install -e .
pre-commit install
coverage run -m --source=./rlskyjo pytest tests

Tutorials

Vanilla SkyJo PettingZoo Env example

SkyJo game example

Train PPO MultiAgent with SkyJo PettingZoo Env, Pytorch and RLLib

skyjo_rl's People

Contributors

michaelfeil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

skyjo_rl's Issues

Feature request: update PettingZoo version

Hi, would it be possible to update this repo to use the most recent version of PettingZoo? This project is listed in PettingZoo's third-party-environments, but we only want to include environments which work with the current version.

If you need any help working out issues due to different versions feel free to ask, there were some breaking changes in version 1.2, so it requires a bit of code changes to adapt. The previous API returned done in the step() function, whereas the new one returns truncated and terminated (matching gymnasium). There is a migration guide for gymnasium explaining the changes further, the steps should be basically the same (we're working on making resources for updating old PettingZoo repositories as well): https://gymnasium.farama.org/content/migration-guide/

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.