PyroRL

PyroRL: A Reinforcement Learning Environment for Wildfire Evacuation - Published in JOSS (2024)

https://github.com/sisl/pyrorl

Science Score: 98.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
    Found 3 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
    Organization sisl has institutional domain (sisl.stanford.edu)
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 6 months ago · JSON representation

Repository

An RL environment made for wildfire evacuation.

Basic Info
Statistics
  • Stars: 18
  • Watchers: 2
  • Forks: 0
  • Open Issues: 2
  • Releases: 1
Created over 2 years ago · Last pushed 11 months ago
Metadata Files
Readme License Codeowners

README.md

██████╗ ██╗   ██╗██████╗  ██████╗ ██████╗ ██╗     
██╔══██╗╚██╗ ██╔╝██╔══██╗██╔═══██╗██╔══██╗██║     
██████╔╝ ╚████╔╝ ██████╔╝██║   ██║██████╔╝██║     
██╔═══╝   ╚██╔╝  ██╔══██╗██║   ██║██╔══██╗██║     
██║        ██║   ██║  ██║╚██████╔╝██║  ██║███████╗
╚═╝        ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝

example workflow codecov DOI

PyroRL is a new reinforcement learning environment built for the simulation of wildfire evacuation. Check out the docs and the demo.

How to Use

First, install our package. Note that PyroRL requires Python version 3.8:

bash pip install pyrorl

To use our wildfire evacuation environment, define the dimensions of your grid, where the populated areas are, the paths, and which populated areas can use which path. See an example below.

```python

Create environment

kwargs = { 'numrows': numrows, 'numcols': numcols, 'populatedareas': populatedareas, 'paths': paths, 'pathstopops': pathstopops } env = gymnasium.make('pyrorl/PyroRL-v0', **kwargs)

Run a simple loop of the environment

env.reset() for _ in range(10):

# Take action and observation
action = env.action_space.sample()
observation, reward, terminated, truncated, info = env.step(action)

# Render environment and print reward
env.render()
print("Reward: " + str(reward))

```

A compiled visualization of numerous iterations is seen below. For more examples, check out the examples/ folder.

Example Visualization of PyroRL

For a more comprehensive tutorial, check out the quickstart page on our docs website.

How to Contribute

For information on how to contribute, check out our contribution guide.

Owner

  • Name: Stanford Intelligent Systems Laboratory
  • Login: sisl
  • Kind: organization
  • Location: Stanford, CA

JOSS Publication

PyroRL: A Reinforcement Learning Environment for Wildfire Evacuation
Published
September 18, 2024
Volume 9, Issue 101, Page 6739
Authors
Joseph Guman
Department of Computer Science, Stanford University
Joseph C. O'Brien
Department of Computer Science, Stanford University
Christopher Pondoc
Department of Computer Science, Stanford University
Mykel J. Kochenderfer
Department of Aeronautics and Astronautics, Stanford University
Editor
Michael Mahoney ORCID
Tags
python gymanisum rl wildfire

GitHub Events

Total
  • Issues event: 4
  • Watch event: 4
  • Issue comment event: 1
  • Push event: 6
  • Pull request event: 6
  • Create event: 3
Last Year
  • Issues event: 4
  • Watch event: 4
  • Issue comment event: 1
  • Push event: 6
  • Pull request event: 6
  • Create event: 3

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 195
  • Total Committers: 3
  • Avg Commits per committer: 65.0
  • Development Distribution Score (DDS): 0.277
Past Year
  • Commits: 23
  • Committers: 2
  • Avg Commits per committer: 11.5
  • Development Distribution Score (DDS): 0.435
Top Committers
Name Email Commits
cpondoc c****c@c****t 141
joey-obrien j****7@g****m 44
JosephGuman j****g@s****u 10
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 11
  • Total pull requests: 10
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 23 hours
  • Total issue authors: 5
  • Total pull request authors: 2
  • Average comments per issue: 1.36
  • Average comments per pull request: 0.4
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 6
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 1 minute
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • cpondoc (7)
  • SamTov (2)
  • joey-obrien (1)
  • JosephGuman (1)
  • shahchiragh (1)
Pull Request Authors
  • cpondoc (9)
  • joey-obrien (4)
Top Labels
Issue Labels
testing (2) help wanted (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 14 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
pypi.org: pyrorl

An RL Environment for Wildfire Evacuation

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 14 Last month
Rankings
Dependent packages count: 10.0%
Average: 37.8%
Dependent repos count: 65.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/testing.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
.github/workflows/draft-pdf.yml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v1 composite
  • openjournals/openjournals-draft-action master composite
.github/workflows/docs.yml actions
  • actions/checkout v2 composite
  • mhausenblas/mkdocs-deploy-gh-pages master composite
pyrorl/setup.py pypi
  • numpy *
.github/workflows/lint.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • suo/flake8-github-action releases/v1 composite