https://github.com/cdcgov/pyrenew
Python package for multi-signal Bayesian renewal modeling with JAX and NumPyro.
Science Score: 59.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 1 DOI reference(s) in README -
✓Academic publication links
Links to: springer.com -
✓Committers with academic emails
1 of 12 committers (8.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Python package for multi-signal Bayesian renewal modeling with JAX and NumPyro.
Basic Info
- Host: GitHub
- Owner: CDCgov
- License: apache-2.0
- Language: Python
- Default Branch: main
- Homepage: https://cdcgov.github.io/PyRenew/
- Size: 10.7 MB
Statistics
- Stars: 17
- Watchers: 14
- Forks: 7
- Open Issues: 52
- Releases: 5
Topics
Metadata Files
README.md
PyRenew: A Package for Bayesian Renewal Modeling with JAX and NumPyro.
⚠️ This is a work in progress ⚠️
pyrenew is a flexible tool for simulation and statistical inference of epidemiological models, emphasizing renewal models. Built on top of the numpyro Python library, pyrenew provides core components for model building, including pre-defined models for processing various types of observational processes. To start, visit the tutorials section on the project's website here.
The following diagram illustrates the composition of the HospitalAdmissionsModel class. Notably, all components are modular and can be replaced with custom implementations.
```mermaid flowchart LR
%% Elements rtproc["Random Walk Rt\nProcess (latent)"]; latentinf["Latent Infections"] latentihr["Infection to Hosp.\nrate (latent)"] negbinom["Observation process\n(hospitalizations)"] latenthosp["Latent Hospitalizations"]; i0["Initial infections\n(latent)"]; genint["Generation\ninterval (fixed)"]; hosp_int["Hospitalization\ninterval (fixed)"];
%% Models basicmodel(("Infections\nModel")); adminmodel(("Hospital Admissions\nModel"));
%% Latent infections rtproc --> latentinf; i0 --> latentinf; genint --> latentinf; latentinf --> basic_model
%% Hospitalizations hospint --> latenthosp
negbinom --> adminmodel; latentihr --> latenthosp; basicmodel --> adminmodel; latenthosp --> adminmodel; ```
Installation
Install via pip with
bash
pip install git+https://github.com/CDCgov/PyRenew@main
Models Implemented With PyRenew
- CDCgov/pyrenew-covid-wastewater: Models and infrastructure for forecasting COVID-19 hospitalizations using wastewater data with PyRenew.
- CDCgov/pyrenew-flu-light: An instantiation in PyRenew of an influenza forecasting model used in the 2023-24 respiratory season.
Resources
- The MSR Website provides general documentation and tutorials on using MSR.
- The Model Equations Sheet describe the mathematics of the renewal processes and models MSR supports.
- Additional reading on renewal processes in epidemiology
General Disclaimer
This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.
Public Domain Standard Notice
This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.
License Standard Notice
This repository is licensed under ASL v2 or later.
This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.
You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html.
The source code forked from other open source projects will inherit its license.
Privacy Standard Notice
This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.
Contributing Standard Notice
Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.
All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.
Records Management Standard Notice
This repository is not a source of government records but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.
Additional Standard Notices
Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.
Owner
- Name: Centers for Disease Control and Prevention
- Login: CDCgov
- Kind: organization
- Email: data@cdc.gov
- Location: Atlanta, GA
- Website: http://open.cdc.gov/
- Twitter: CDCgov
- Repositories: 114
- Profile: https://github.com/CDCgov
CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.
GitHub Events
Total
- Create event: 49
- Release event: 3
- Issues event: 25
- Watch event: 5
- Delete event: 44
- Member event: 1
- Issue comment event: 117
- Push event: 96
- Pull request review comment event: 39
- Pull request review event: 75
- Pull request event: 108
- Fork event: 5
Last Year
- Create event: 49
- Release event: 3
- Issues event: 25
- Watch event: 5
- Delete event: 44
- Member event: 1
- Issue comment event: 117
- Push event: 96
- Pull request review comment event: 39
- Pull request review event: 75
- Pull request event: 108
- Fork event: 5
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Damon Bayer | x****8@c****v | 55 |
| upx3—TM (CFA) | 1****2 | 42 |
| George G. Vega Yon | g****n@g****m | 39 |
| Dylan H. Morris | d****s | 33 |
| Subekshya Bidari | 3****i | 31 |
| dependabot[bot] | 4****] | 12 |
| George G Vega Yon | 1****c | 5 |
| Nate McIntosh | N****h@c****v | 2 |
| Courtney Shelley | c****y@u****u | 2 |
| pre-commit-ci[bot] | 6****] | 1 |
| Samuel Brand | 4****1 | 1 |
| Brandon Rose | r****m@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 5 months ago
All Time
- Total issues: 89
- Total pull requests: 137
- Average time to close issues: about 1 month
- Average time to close pull requests: 6 days
- Total issue authors: 9
- Total pull request authors: 10
- Average comments per issue: 1.36
- Average comments per pull request: 2.01
- Merged pull requests: 98
- Bot issues: 0
- Bot pull requests: 38
Past Year
- Issues: 36
- Pull requests: 102
- Average time to close issues: 12 days
- Average time to close pull requests: 2 days
- Issue authors: 5
- Pull request authors: 8
- Average comments per issue: 0.22
- Average comments per pull request: 1.72
- Merged pull requests: 78
- Bot issues: 0
- Bot pull requests: 38
Top Authors
Issue Authors
- dylanhmorris (33)
- damonbayer (27)
- sbidari (9)
- gvegayon (9)
- AFg6K7h4fhy2 (6)
- ghost (2)
- zsusswein (1)
- SamuelBrand1 (1)
- seabbs (1)
Pull Request Authors
- damonbayer (39)
- dylanhmorris (28)
- dependabot[bot] (26)
- sbidari (13)
- pre-commit-ci[bot] (12)
- AFg6K7h4fhy2 (8)
- gvegayon (5)
- star1327p (4)
- natemcintosh (1)
- SamuelBrand1 (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pre-commit/action v3.0.1 composite
- actions/checkout v4 composite
- actions/configure-pages v4 composite
- actions/deploy-pages v4 composite
- actions/setup-python v5 composite
- actions/upload-pages-artifact v3 composite
- ipykernel ^6.29.3 develop
- matplotlib ^3.8.3 develop
- nbclient ^0.10.0 develop
- nbformat ^5.10.0 develop
- numpydoc ^1.7.0 develop
- pytest-cov ^5.0.0 develop
- pytest-mpl ^0.17.0 develop
- pyyaml ^6.0.0 develop
- jax ^0.4.24
- numpy ^1.26.4
- numpyro ^0.13.2
- pillow ^10.3.0
- polars ^0.20.13
- python ^3.10
- actions/cache v4 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/cache v4 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- codecov/codecov-action v4 composite