Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formally addresses implementing the observed hospitalizations module #39

Merged
merged 35 commits into from
Apr 3, 2024

Conversation

ghost
Copy link

@ghost ghost commented Mar 21, 2024

This PR contributes to the support of the hospital admissions signal. It includes the following:

  • Adds process.DeterministicProcess and observation.DeterministicObs to the corresponding modules. This can be used to wrap fixed quantities when needed.
  • Updates latent.HospitalAdmisions latent class to treat IHR, weekday effect, and p hosp as RandomVariable. Again, with the DeterministicObs these can be passed as fixed quantities (or inferred).
  • Adds more details to the hospitalization bit of the equations.md file, mostly pointing to the wastewater model.
  • Re-organizes the getting-started.qmd documentation to clarify.
  • latent.Infections now receives a RandomVariable for the generation interval. Before it was a fixed array.
  • Extends testing of model.Hospitalizations assessing that the new bits that can either do inference or reuse some of the new components (e.g., generation weekday effect).

@ghost ghost linked an issue Mar 21, 2024 that may be closed by this pull request
4 tasks
George G Vega Yon and others added 12 commits March 26, 2024 15:00
* 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
* 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]>
* Update description of discrete delay distributions

* remove double desciption

* minor eq fix

* Update equations.md

* update equations.md contents

* Update equations.md

* fix contents
@ghost ghost marked this pull request as ready for review March 27, 2024 22:45
@ghost ghost requested review from dylanhmorris, SamuelBrand1 and AFg6K7h4fhy2 March 27, 2024 22:46
Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments @gvegayon

@gvegayon gvegayon requested a review from dylanhmorris March 29, 2024 17:51
@gvegayon
Copy link
Member

OK, @dylanhmorris. I've included the discussed changes. More improvements will be addressed/discussed during the next sprint!

Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

High-level comment: we need to standardize language on "Hospital admissions" versus "Hospitalizations". I prefer the former ("Hospital admissions"), because there's less chance of confusion between incidence and prevalence.

@gvegayon
Copy link
Member

High-level comment: we need to standardize language on "Hospital admissions" versus "Hospitalizations". I prefer the former ("Hospital admissions"), because there's less chance of confusion between incidence and prevalence.

Yes, I think it is worthwhile having a single issue to standardize language across the package. And have a document to summarize all.

@gvegayon gvegayon mentioned this pull request Mar 29, 2024
@gvegayon
Copy link
Member

gvegayon commented Apr 2, 2024

Implemented requested changes in 33d9ed0 and 39c54c4. The two existing models do not have any default values now.

AFg6K7h4fhy2
AFg6K7h4fhy2 previously approved these changes Apr 3, 2024
Copy link
Collaborator

@AFg6K7h4fhy2 AFg6K7h4fhy2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closely reviewed some files and skimmed those remaining. Generally speaking, the changes look fit for merge. The newest changes (regarding modified titles) look good as well.

Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few final tweaks needed.

dylanhmorris
dylanhmorris previously approved these changes Apr 3, 2024
Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needs this: #39 (comment)

Also: the deploy step of the Sphinx build workflow should only run on main, otherwise we'll get failures like the one we have here. Update: will be addressed when #62 is merged.

@gvegayon gvegayon requested review from gvegayon and removed request for SamuelBrand1 April 3, 2024 19:32
Copy link
Member

@gvegayon gvegayon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All suggestions have been addressed. This is a bit of a bottle neck for other issues, so I'll go ahead and merge it. Thanks for your input, @dylanhmorris!

@gvegayon gvegayon merged commit 5a06ab2 into main Apr 3, 2024
5 checks passed
@gvegayon gvegayon deleted the 16-observation-model-for-hospital-signals branch April 3, 2024 19:34
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.

Observation model for hospital signals
5 participants