Expose count observation process base class; add section to tutorial for custom count observation process#726
Expose count observation process base class; add section to tutorial for custom count observation process#726cdc-mitzimorris wants to merge 34 commits intomainfrom
Conversation
… mem_h_e_tutorial
for more information, see https://pre-commit.ci
… into mem_custom_weekly_counts
|
Thank you for your contribution @cdc-mitzimorris 🚀! Your github-pages is ready for download 👉 here 👈! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #726 +/- ##
==========================================
- Coverage 98.44% 98.44% -0.01%
==========================================
Files 51 51
Lines 1675 1673 -2
==========================================
- Hits 1649 1647 -2
Misses 26 26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@dylanhmorris, @damonbayer - ready for review. |
|
@dylanhmorris tagging for myself that this needs review. |
| ## Using the `Counts` class for Hospital Admissions Data | ||
|
|
||
| For hospital admissions data, we construct a `Counts` observation process. | ||
| The delay is the key mechanism: infections from $s$ days ago ($I(t-s)$) contribute to today's expected hospital admissions ($\mu(t)$) weighted by the probability ($\pi(s)$) that an infection leads to hospitalization after exactly $s$ days. The convolution sums these contributions across all past days. |
There was a problem hiding this comment.
Should now be
| ``` | ||
|
|
||
| ## Weekly Observations with WeeklyCounts | ||
|
|
There was a problem hiding this comment.
Flag at the top that Pyrenew provides helper functions and we'll use them here?
dylanhmorris
left a comment
There was a problem hiding this comment.
Thanks @cdc-mitzimorris. A few minor suggestions.
|
not going to merge at this time - this work will be redone in future PRs to address #777 |
Rename the Count observation process base class from
_CountBasetoCountBase- which parallels how the Measurements observation process class is set up.Add a section to tutorial
observation_process_counts.qmdshowing how to extent theCountBaseclass for observation data aggregated to the weekly level. This parallels how the Measurements observation process tutorial defines theWastewaterclass.