https://github.com/cdcgov/pyrenew

Python package for multi-signal Bayesian renewal modeling with JAX and NumPyro.

https://github.com/cdcgov/pyrenew

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

epidemiology infectious-disease-models package renewal-process

Keywords from Contributors

archival parallel bayesian-inference distribution transformers energy-system-model mcmc generic projection mesh
Last synced: 5 months ago · JSON representation

Repository

Python package for multi-signal Bayesian renewal modeling with JAX and NumPyro.

Basic Info
Statistics
  • Stars: 17
  • Watchers: 14
  • Forks: 7
  • Open Issues: 52
  • Releases: 5
Topics
epidemiology infectious-disease-models package renewal-process
Created about 2 years ago · Last pushed 6 months ago
Metadata Files
Readme License Codeowners

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

Resources

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

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

All Time
  • Total Commits: 224
  • Total Committers: 12
  • Avg Commits per committer: 18.667
  • Development Distribution Score (DDS): 0.754
Past Year
  • Commits: 181
  • Committers: 9
  • Avg Commits per committer: 20.111
  • Development Distribution Score (DDS): 0.702
Top Committers
Name Email 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
clean up (18) pyrenew (13) discussion (13) documentation (9) request (6) testing (5) developer (5) invalid (2) tutorial (2) bug (1) model (1) pipeline (1)
Pull Request Labels
dependencies (26) python:uv (20) github_actions (6) clean up (4) documentation (3) pyrenew (3) model (2) request (1)

Dependencies

.github/workflows/pre-commit.yaml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pre-commit/action v3.0.1 composite
.github/workflows/website.yaml actions
  • 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
pyproject.toml pypi
  • 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
.github/workflows/deptry.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
.github/workflows/test.yml actions
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • codecov/codecov-action v4 composite