Skip to content

Commit

Permalink
[RLlib] Updated PettingZoo+RLlib tutorial; Removed pettingzoo example…
Browse files Browse the repository at this point in the history
… script (ray-project#19069)

* Updated PettingZoo+RLlib tutorial

Updated the tutorial and added link to the blog post by the PettingZoo team.

* Ran linting

* Converted link to tinyurl for linting

* fixed line lengths

* Decrease num_workers to 1

* Added comments

* Decreased num_workers

* Decreased timesteps

* Increased num_workers

* Update links and remove pettingzoo_env.py

* remove pettingzoo.py script from tests

Co-authored-by: sven1977 <[email protected]>
  • Loading branch information
Rohan138 and sven1977 authored Oct 29, 2021
1 parent 902e854 commit b9c9cc5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 90 deletions.
2 changes: 1 addition & 1 deletion doc/source/rllib-env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ PettingZoo Multi-Agent Environments
# you can pass arguments to the environment creator with the env_config option in the config
config['env_config'] = {"num_floors": 5}
A more complete example is here: `pettingzoo_env.py <https://github.com/ray-project/ray/blob/master/rllib/examples/pettingzoo_env.py>`__
A more complete example is here: `rllib_pistonball.py <https://github.com/Farama-Foundation/PettingZoo/blob/master/tutorials/rllib_pistonball.py>`__


Rock Paper Scissors Example
Expand Down
2 changes: 1 addition & 1 deletion doc/source/rllib-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Multi-Agent and Hierarchical
Example of different heuristic and learned policies competing against each other in rock-paper-scissors.
- `Two-step game <https://github.com/ray-project/ray/blob/master/rllib/examples/two_step_game.py>`__:
Example of the two-step game from the `QMIX paper <https://arxiv.org/pdf/1803.11485.pdf>`__.
- `PettingZoo multi-agent example <https://github.com/ray-project/ray/blob/master/rllib/examples/pettingzoo_env.py>`__:
- `PettingZoo multi-agent example <https://github.com/Farama-Foundation/PettingZoo/blob/master/tutorials/rllib_pistonball.py>`__:
Example on how to use RLlib to learn in `PettingZoo <https://www.pettingzoo.ml>`__ multi-agent environments.
- `PPO with centralized critic on two-step game <https://github.com/ray-project/ray/blob/master/rllib/examples/centralized_critic.py>`__:
Example of customizing PPO to leverage a centralized value function.
Expand Down
8 changes: 0 additions & 8 deletions rllib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2719,14 +2719,6 @@ py_test(
args = ["--as-test", "--stop-reward=80.0"]
)

py_test(
name = "examples/pettingzoo_env",
main = "examples/pettingzoo_env.py",
tags = ["team:ml", "examples", "examples_P"],
size = "medium",
srcs = ["examples/pettingzoo_env.py"],
)

py_test(
name = "examples/preprocessing_disabled_tf",
main = "examples/preprocessing_disabled.py",
Expand Down
80 changes: 0 additions & 80 deletions rllib/examples/pettingzoo_env.py

This file was deleted.

0 comments on commit b9c9cc5

Please sign in to comment.