pettingzoo-skill

The environment for DUSDi (NeurIPS24)

https://github.com/jiahenghu/pettingzoo-skill

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.3%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

The environment for DUSDi (NeurIPS24)

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed 11 months ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

pre-commit Code style: black

PettingZoo is a Python library for conducting research in multi-agent reinforcement learning, akin to a multi-agent version of Gymnasium.

The documentation website is at pettingzoo.farama.org and we have a public discord server (which we also use to coordinate development work) that you can join here: https://discord.gg/nhvKkYa6qX

Environments

PettingZoo includes the following families of environments:

  • Atari: Multi-player Atari 2600 games (cooperative, competitive and mixed sum)
  • Butterfly: Cooperative graphical games developed by us, requiring a high degree of coordination
  • Classic: Classical games including card games, board games, etc.
  • MPE: A set of simple nongraphical communication tasks, originally from https://github.com/openai/multiagent-particle-envs
  • SISL: 3 cooperative environments, originally from https://github.com/sisl/MADRL

Installation

To install the base PettingZoo library: pip install pettingzoo.

This does not include dependencies for all families of environments (some environments can be problematic to install on certain systems).

To install the dependencies for one family, use pip install pettingzoo[atari], or use pip install pettingzoo[all] to install all dependencies.

We support Python 3.8, 3.9, 3.10 and 3.11 on Linux and macOS. We will accept PRs related to Windows, but do not officially support it.

Getting started

For an introduction to PettingZoo, see Basic Usage. To create a new environment, see our Environment Creation Tutorial and Custom Environment Examples. For examples of training RL models using PettingZoo see our tutorials: * CleanRL: Implementing PPO:train multiple PPO agents in the Pistonball environment. * Tianshou: Training Agents: train DQN agents in the Tic-Tac-Toe environment.

API

PettingZoo model environments as Agent Environment Cycle (AEC) games, in order to be able to cleanly support all types of multi-agent RL environments under one API and to minimize the potential for certain classes of common bugs.

Using environments in PettingZoo is very similar to Gymnasium, i.e. you initialize an environment via:

python from pettingzoo.butterfly import pistonball_v6 env = pistonball_v6.env()

Environments can be interacted with in a manner very similar to Gymnasium:

python env.reset() for agent in env.agent_iter(): observation, reward, termination, truncation, info = env.last() action = None if termination or truncation else env.action_space(agent).sample() # this is where you would insert your policy env.step(action)

For the complete API documentation, please see https://pettingzoo.farama.org/api/aec/

Parallel API

In certain environments, it's a valid to assume that agents take their actions at the same time. For these games, we offer a secondary API to allow for parallel actions, documented at https://pettingzoo.farama.org/api/parallel/

SuperSuit

SuperSuit is a library that includes all commonly used wrappers in RL (frame stacking, observation, normalization, etc.) for PettingZoo and Gymnasium environments with a nice API. We developed it in lieu of wrappers built into PettingZoo. https://github.com/Farama-Foundation/SuperSuit

Environment Versioning

PettingZoo keeps strict versioning for reproducibility reasons. All environments end in a suffix like "_v0". When changes are made to environments that might impact learning results, the number is increased by one to prevent potential confusion.

Project Maintainers

Project Manager: Elliot Tower

Maintenance for this project is also contributed by the broader Farama team: farama.org/team.

Citation

To cite this project in publication, please use

@article{terry2021pettingzoo, title={Pettingzoo: Gym for multi-agent reinforcement learning}, author={Terry, J and Black, Benjamin and Grammel, Nathaniel and Jayakumar, Mario and Hari, Ananth and Sullivan, Ryan and Santos, Luis S and Dieffendahl, Clemens and Horsch, Caroline and Perez-Vicente, Rodrigo and others}, journal={Advances in Neural Information Processing Systems}, volume={34}, pages={15032--15043}, year={2021} }

Owner

  • Name: Jiaheng Hu
  • Login: JiahengHu
  • Kind: user

GitHub Events

Total
  • Push event: 5
  • Create event: 1
Last Year
  • Push event: 5
  • Create event: 1

Dependencies

docs/requirements.txt pypi
  • furo *
  • myst-parser *
  • sphinx *
  • sphinx-autobuild *
  • sphinx_github_changelog *
pyproject.toml pypi
  • gymnasium >=0.28.0
  • numpy >=1.21.0
setup.py pypi
tutorials/AgileRL/requirements.txt pypi
  • Pillow >=9.5.0
  • SuperSuit >=3.9.0
  • agilerl >=0.1.11
  • fastrand ==1.3.0
  • gymnasium >=0.28.1
  • imageio >=2.31.1
  • pettingzoo >=1.23.1
  • torch >=2.0.1
tutorials/CleanRL/requirements.txt pypi
  • SuperSuit >=3.9.0
  • pettingzoo >=1.24.0
  • tensorboard >=2.11.2
  • torch >=1.13.1
tutorials/CustomEnvironment/requirements.txt pypi
  • pettingzoo ==1.24.0
tutorials/LangChain/requirements.txt pypi
  • langchain *
  • openai *
  • pettingzoo *
  • tenacity *
tutorials/Ray/requirements.txt pypi
  • PettingZoo >=1.24.0
  • Pillow >=9.4.0
  • SuperSuit >=3.9.0
  • ray >=2.7.0
  • tensorflow-probability >=0.19.0
  • torch >=1.13.1
tutorials/SB3/connect_four/requirements.txt pypi
  • pettingzoo >=1.24.0
  • sb3-contrib >=2.0.0
  • stable-baselines3 >=2.0.0
tutorials/SB3/kaz/requirements.txt pypi
  • pettingzoo >=1.24.0
  • stable-baselines3 >=2.0.0
  • supersuit >=3.9.0
tutorials/SB3/pistonball/requirements.txt pypi
  • pettingzoo >=1.24.0
  • stable-baselines3 >=2.0.0
  • supersuit >=3.9.0
tutorials/SB3/test/requirements.txt pypi
  • pettingzoo >=1.24.0 test
  • pytest * test
  • sb3-contrib >=2.0.0 test
  • stable-baselines3 >=2.0.0 test
tutorials/SB3/waterworld/requirements.txt pypi
  • pettingzoo >=1.24.0
  • pymunk *
  • stable-baselines3 >=2.0.0
  • supersuit >=3.9.0
tutorials/Tianshou/requirements.txt pypi
  • packaging ==21.3
  • pettingzoo ==1.23.0
  • tianshou ==0.5.0