Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
680bb1e
Merge branch 'main' of https://github.com/CDCgov/PyRenew
cdc-mitzimorris Sep 15, 2025
2cb876b
update
cdc-mitzimorris Sep 18, 2025
60db8df
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Sep 22, 2025
32a5314
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Oct 5, 2025
d6213f2
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Oct 8, 2025
96f27c9
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Nov 17, 2025
1cb6fa2
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Nov 24, 2025
f62e1e4
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Dec 4, 2025
0c6785d
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Dec 22, 2025
1ee62b9
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Jan 29, 2026
0629461
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 4, 2026
efeadee
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 5, 2026
371ba98
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 5, 2026
0304bed
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 6, 2026
ffeea65
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 9, 2026
50e7261
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 9, 2026
dae6af8
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 10, 2026
5cb3097
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 11, 2026
1d80ccc
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 11, 2026
e73b401
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 12, 2026
b1473b5
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 18, 2026
0b929b5
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 18, 2026
3ee00a7
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 24, 2026
307982a
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 24, 2026
b862bc6
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Feb 26, 2026
2c665a5
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Mar 11, 2026
60d6458
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Mar 12, 2026
ec8c464
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Mar 19, 2026
c018bf7
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Mar 24, 2026
d0207dd
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 4, 2026
f3c706a
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 9, 2026
684c6c5
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 10, 2026
ca2454f
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 13, 2026
0f38afc
merge
cdc-mitzimorris Apr 14, 2026
d8e7a57
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 16, 2026
7e9b5fe
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 24, 2026
e1d8014
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 24, 2026
83ddbf0
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 24, 2026
69ea4ea
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 24, 2026
555e87b
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris Apr 28, 2026
fa5a7cb
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris May 4, 2026
69cdab0
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris May 6, 2026
c28a89f
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris May 6, 2026
fd091ca
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris May 7, 2026
8cee471
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris May 7, 2026
b2a1e1a
Merge branch 'main' of github-bf06:CDCgov/PyRenew
cdc-mitzimorris May 11, 2026
dcd81d8
checkpointing
cdc-mitzimorris May 12, 2026
cec9027
checkpointing
cdc-mitzimorris May 12, 2026
e310f2f
checkpointing tutorials
cdc-mitzimorris May 13, 2026
2ce9d95
checkpointing tutorials
cdc-mitzimorris May 13, 2026
72a6b4a
adding testing/export bridge for pyrenew-hew's data pipeline
cdc-mitzimorris May 13, 2026
5cbcb3d
checkpointing
cdc-mitzimorris May 13, 2026
46db11d
checkpointing
cdc-mitzimorris May 13, 2026
409f9e7
checkpointing
cdc-mitzimorris May 14, 2026
5b34f41
checkpointing
cdc-mitzimorris May 15, 2026
1ef420d
checkpointing
cdc-mitzimorris May 15, 2026
79a2899
checkpointing
cdc-mitzimorris May 15, 2026
f506a2e
checkpointing
cdc-mitzimorris May 15, 2026
bb782c7
checkpointing
cdc-mitzimorris May 15, 2026
d4aefa9
tutorial edits
cdc-mitzimorris May 15, 2026
052b753
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2026
0794117
more unit tests
cdc-mitzimorris May 15, 2026
7b76267
Merge branch 'mem_tutorial_h_e_approx' of github-bf06:CDCgov/PyRenew …
cdc-mitzimorris May 15, 2026
90528f1
revised tutorial for more comparisons, added data
cdc-mitzimorris May 15, 2026
c7d4250
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2026
53780af
Merge branch 'mem_tutorial_h_e_approx' of github-bf06:CDCgov/PyRenew …
cdc-mitzimorris May 15, 2026
c771f8a
allow tutorials/data/multisignal_he
cdc-mitzimorris May 15, 2026
3213d3e
update dependencies for docs scripts
cdc-mitzimorris May 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ repos:
hooks:
- id: detect-secrets
args: [ "--baseline", ".secrets.baseline" ]
exclude: package.lock.json
exclude: ^(package\.lock\.json|docs/tutorials/data/multisignal_he/)
####
# Typos
- repo: https://github.com/crate-ci/typos
Expand Down
6 changes: 6 additions & 0 deletions docs/tutorials/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ _compiled
*.ipynb
*.py
*.md
!data/
!data/multisignal_he/
!data/multisignal_he/README.md
!data/multisignal_he/*.csv
!data/multisignal_he/*.json
!data/multisignal_he/*.npz
1 change: 1 addition & 0 deletions docs/tutorials/.pages
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ nav:
- right_truncation.md
- day_of_week_effects.md
- ascertainment.md
- multisignal_H_E_model.md
9 changes: 7 additions & 2 deletions docs/tutorials/ascertainment.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ independent_iedr = dist.Beta(2, 98).sample(key_iedr, (n_draws,))

## Model-level ascertainment

To share ascertainment structure across count signals, define an ascertainment model once and register it with the builder.
Each observation process receives the appropriate signal-specific accessor from `for_signal()`.
To share ascertainment structure across count signals, define an `AscertainmentModel` object and register it with the builder.
Each observation process receives the appropriate signal-specific accessor via the object's `for_signal()` method.

All all `AscertainmentModel` objects are specified with arguments `name` which identified this component in larger multisignal model and `signals` which is a list of unique signal names.

The `JointAscertainment` model is the joint prior for scalar ascertainment rates across multiple signals.
It samples from a logit multivariate normal vector given natural-scale baseline ascertainment rates and a covariance structure on the logit scale which can be specified either as a lower-triangular scale matrix, a covariance matrix, or a precision matrix.

```python
builder = PyrenewBuilder()
Expand Down
2 changes: 2 additions & 0 deletions docs/tutorials/building_multisignal_models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ format:
gfm:
code-fold: true
engine: jupyter
execute:
eval: false
jupyter:
jupytext:
text_representation:
Expand Down
13 changes: 13 additions & 0 deletions docs/tutorials/data/multisignal_he/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Multisignal H+E tutorial artifacts

This directory stores precomputed fit artifacts for `docs/tutorials/multisignal_H_E_model.qmd`.

Regenerate the artifacts from the repository root with:

```bash
uv run python docs_scripts/generate_multisignal_he_artifacts.py
```

The generator must be run on a machine that can fit the PyRenew tutorial models, including the linked-ascertainment variant, and the custom NumPyro H+E model.
The documentation build reads the generated `npz`, `csv`, and `json` files from this directory instead of running the fits during Quarto rendering.
The custom-H-E artifacts include reduced scalar draws and latent infection draws for plotting posterior infection uncertainty.
Binary file not shown.
2,001 changes: 2,001 additions & 0 deletions docs/tutorials/data/multisignal_he/custom_he_scalar_draws.csv

Large diffs are not rendered by default.

Binary file not shown.
6 changes: 6 additions & 0 deletions docs/tutorials/data/multisignal_he/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"generated_at": "2026-05-15T17:42:23.770328+00:00",
"pyrenew_sha": "7b76267c40aa3170d7a1a704aca8cca91f051ec6",
"pyrenew_multisignal_sha": "362cd6038060599859cc6104fd97321146952499",
"cfa_stf_sha": "cf46267785c213c2a6e6b36ed3595cd798660a03"
}
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/tutorials/data/multisignal_he/timings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pyrenew-H-E": {
"elapsed_seconds": 65.24473595619202,
"num_warmup": 500,
"num_samples": 500,
"num_chains": 4,
"rng_key": 42
},
"custom-H-E": {
"elapsed_seconds": 67.23963212966919,
"num_warmup": 500,
"num_samples": 500,
"num_chains": 4,
"rng_key": 42
},
"linked-pyrenew-H-E": {
"elapsed_seconds": 70.60192012786865,
"num_warmup": 500,
"num_samples": 500,
"num_chains": 4,
"rng_key": 42
}
}
Loading
Loading