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

Issue 51: Add ascertainment_dayofweek #253

Merged
merged 7 commits into from
Jun 4, 2024
Merged

Issue 51: Add ascertainment_dayofweek #253

merged 7 commits into from
Jun 4, 2024

Conversation

seabbs
Copy link
Collaborator

@seabbs seabbs commented Jun 3, 2024

This PR closes #51 by adding a new helper function to EpiObsModels that gives semi-sensible defaults for specifying a day of the week ascertainment model (as a day of the week effect).

It does this by introducing a new dependence on EpiLatentModels and slightly modifying Ascertainment so that the transform has to be manually specified as vectorised (to allow for actually vectorised transforms to be supported).

Note: We had discussed using a softmax but this doesn't make sense once a latent model has been broadcast. We could instead do so using a TransformLatentModel but to me (and as currently formulation is fairly common practice) what is here seems reasonable as a starting point.

@seabbs seabbs enabled auto-merge (squash) June 3, 2024 22:42
@seabbs seabbs requested a review from SamuelBrand1 June 3, 2024 22:44
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.90%. Comparing base (1e9390b) to head (100e640).

Files Patch % Lines
...re/src/EpiObsModels/ascertainment/Ascertainment.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #253      +/-   ##
==========================================
- Coverage   93.07%   92.90%   -0.18%     
==========================================
  Files          43       44       +1     
  Lines         419      423       +4     
==========================================
+ Hits          390      393       +3     
- Misses         29       30       +1     

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

Copy link
Collaborator

@SamuelBrand1 SamuelBrand1 left a comment

Choose a reason for hiding this comment

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

This looks great!

Wrt using softmax, I think that would be cool after we clear #251 e.g. we might model a weekly process but then broadcast out the weekly observations to a day of the week in a way that respects the weekly average obs.

This implementation hit a different form of modelling and looks nice!

Note: this was part of analysis plan and should now be added to pipeline.

@seabbs
Copy link
Collaborator Author

seabbs commented Jun 4, 2024

I made a new issue (#258 for the softmax feature)

@seabbs seabbs merged commit 720e173 into main Jun 4, 2024
10 checks passed
@seabbs seabbs deleted the issue51-v2 branch June 4, 2024 15:54
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.

Inclusion of day of week observation processes
3 participants