Skip to content

Conversation

@cdc-mitzimorris
Copy link
Collaborator

@cdc-mitzimorris cdc-mitzimorris commented Jan 15, 2026

This PR adds the following files to the PyRenew code base, with corresponding unit tests.

  • pyrenew.latent components that encapsulate a latent infections process

    • temporal_processes.py
    • partitioned_infections.py
    • hierarchical_priors.py
    • hierarchical_infections.py
    • base.py
  • pyrenew.model components that compose and run a multisignal model

    • multisignal_model.py
    • model_builder.py
  • tutorials on model building and modeling choices for a latent infections process

    • building_multisignal_models.qmd
    • latent_hierarchical_infections.qmd

The datasets and corresponding data loading utilities used by the tutorial on building multisignal models have been added to the pyrenew/datasets directory.

cdc-mitzimorris and others added 30 commits September 15, 2025 18:24
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
pre-commit-ci bot and others added 19 commits January 8, 2026 19:54
- Fix typo: "obervation" -> "observation" in building_multisignal_models.qmd
- Reorder docstring parameters to match actual signatures in
  partitioned_infections.py and hierarchical_infections.py
- Add missing docstrings to __init__ and validate methods in
  hierarchical_priors.py
- Add Returns sections to _sample_single and _sample_vectorized methods
  in temporal_processes.py
- Add docstrings with Returns sections to test fixtures

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
@cdc-mitzimorris cdc-mitzimorris changed the title Mem hier latent processes Model builder, latent infection process components and tutorials Jan 15, 2026
@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.27%. Comparing base (02446c5) to head (e497d6d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #650      +/-   ##
==========================================
+ Coverage   96.98%   98.27%   +1.28%     
==========================================
  Files          42       56      +14     
  Lines        1094     1850     +756     
==========================================
+ Hits         1061     1818     +757     
+ Misses         33       32       -1     
Flag Coverage Δ
unittests 98.27% <100.00%> (+1.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Thank you for your contribution @cdc-mitzimorris 🚀! Your github-pages is ready for download 👉 here 👈!
(The artifact expires on 2026-01-23T16:26:35Z. You can re-generate it by re-running the workflow here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants