-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formally addresses implementing the observed hospitalizations module (#…
…39) * Copy doc from wastewater model on Hosp Admin to class * Rename metaclasses to metaclass (#36) * Create typos.yaml (#42) * Create typos.yaml * Does this make it run on the whole repo? * remove trailing whitespace * Delete .github/workflows/typos.yaml trying to use typos in pre-commit instead * Update .pre-commit-config.yaml add typos to pre-commit * fixed typos * 34 port notebooks under modeldocs to quarto (#35) * Porting to quarto and adding a makefile entry to render them * Now it should be easier to deal with pre-commit under docs (only skipping cache) * Forgot to remove the pyrenew_demo notebook * Update model/Makefile * Fixing typos * Removes progress bar - adds doc/ figures - sets jupyter as kernel * Update model/docs/getting-started.qmd Co-authored-by: Dylan H. Morris <[email protected]> --------- Co-authored-by: Dylan H. Morris <[email protected]> * Extra mathematical description of discrete delay distributions (#44) * Update description of discrete delay distributions * remove double desciption * minor eq fix * Update equations.md * update equations.md contents * Update equations.md * fix contents * Escaping tau * Adding deterministic obs and process to the equation * Cleaning the quarto documents and working on the getting started diagram * Flexible IHR (now RandomVariable) * Adding weekday and phosp effect to latent hosp * Adding back figures * Adding a test for deterministic/stochastic weekday effect * Typo Co-authored-by: Dylan H. Morris <[email protected]> * Correcting tests (class name) and improving readme a bit * Adding deterministic module (midway, expected to fail) [skip ci] * Refactoring I0 and gen_int (expected to fail) [skip ci] * gen_int and I0 now are directly passed to the models * In latent hosp, change inf_hosp_int to inform_hosp (clearer name) * Adding missing figures (pyrenew demo was not compiling) * Renaming inform_hosp * Removing defaults for hosp rate * Changing language (initial infections) + adding section to getting-started * Update model/src/pyrenew/latent/hospitaladmissions.py Co-authored-by: Dylan H. Morris <[email protected]> * Addressing comments on default priors and varnames * Rt is not default now for basic model * Commas and title * Update model/src/pyrenew/latent/hospitaladmissions.py Co-authored-by: Dylan H. Morris <[email protected]> * Renaming hosp reporting variable in latent var * Renaming hosp report * Update model/src/pyrenew/latent/hospitaladmissions.py Co-authored-by: Dylan H. Morris <[email protected]> * Final renaming of vars in tests * Different vector for hosp_report_prob_dist in tests --------- Co-authored-by: George G. Vega Yon <[email protected]> Co-authored-by: George G Vega Yon <[email protected]> Co-authored-by: Nate McIntosh <[email protected]> Co-authored-by: Dylan H. Morris <[email protected]> Co-authored-by: Samuel Brand <[email protected]> Co-authored-by: George G. Vega Yon <[email protected]> Co-authored-by: Dylan H. Morris <[email protected]>
- Loading branch information
1 parent
cf487d3
commit 5a06ab2
Showing
26 changed files
with
1,322 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# PyRenew | ||
# PyRenew: A Package for Bayesian Renewal Modeling with JAX and Numpyro. | ||
|
||
A package for Bayesian renewal modeling with JAX and Numpyro. | ||
`pyrenew` is a flexible tool for simulating and statistical inference of epidemiological models, emphasizing renewal models. Built on top of the [`numpyro`](https://num.pyro.ai/) Python library, `pyrenew` provides core components for model building, including pre-defined models for processing various types of observational processes. | ||
|
||
## Installation | ||
|
||
Install via pip with | ||
|
||
```bash | ||
pip install git+https://github.com/cdcent/cfa-pyrenew.git | ||
``` | ||
|
||
## Demo | ||
The `docs` folder contains a Jupyter notebook with an interactive demo to get you started. It simulates observed hospitalizations using a simple renewal process model and then fits to it using a No-U-Turn Sampler. | ||
|
||
The [`docs`](docs) folder contains quarto documents to get you started. It simulates observed hospitalizations using a simple renewal process model and then fits it using a No-U-Turn Sampler. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
!*png | ||
*_files/libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.