-
Notifications
You must be signed in to change notification settings - Fork 3
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 160: Add ObservationErrorModel type and functions #268
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #268 +/- ##
==========================================
- Coverage 93.40% 92.84% -0.57%
==========================================
Files 45 46 +1
Lines 455 461 +6
==========================================
+ Hits 425 428 +3
- Misses 30 33 +3 ☔ View full report in Codecov by Sentry. |
EpiAware/src/EpiObsModels/ObservationErrorModels/AbstractTuringObservationModel.jl
Outdated
Show resolved
Hide resolved
@SamuelBrand1 do you have thoughts about the outstanding questions ? |
Re: Base types. The upside of having the abstract types in |
I'm agnostic on this. |
This is looking good so far; conditional on
|
We need to make a decision. Is it important too be able to customise/turn off. If its not it can go in the abstract type. If we can implement it so that you can still do so it can also go in the abstract type. |
Conditional on which part? |
That this is probably (? Idk I haven't thought of a better approach yet) not ideal but it fixes my problem with #267 . |
This is not important to customise. |
This reverts commit 31b89d3.
@SamuelBrand1 this is ready for review. I have added the positive shift to the abstract |
Note the reason you are being asked for a review is that I tighted branch controls to dismiss reviews when new commits are made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I like these changes; opens up other obvious observation error models (e.g. LogNormal
, Normal
, TDist
etc with less repetitive code/time shift reasoning.
This PR proposes an approach for resolving #160 by introducing a new
AbstractTuringObservationErrorModel
and associated generic methods.Before making this a full PR I need to:
pos_shift
can live in the generic as a hard-coded value.EpiAwareBase
set of abstract types.Note that this approach also suggests a modifier wrapper (i.e
AbstractObservationModifierModel
) and also suggests this branch/leaf setup elsewhere (i.e latent models) but this can be discussed here and acted on via other issues. It may just be infra we don't currently need IMO.This now extends #267 and updates handling of latent delays so that missingness is instead concatenated into the beginning of the vector and the internal obs error model detects this and only starts fitting. To get this working I needed to stop using
undef
wheny_t = missing
which has required changing some of the tests. This fix is still not ideal but it at least preserves the input out of the model.