-
Notifications
You must be signed in to change notification settings - Fork 4
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
156 solve like function which dispatches on epiawareproblem and epiawaremethod #169
156 solve like function which dispatches on epiawareproblem and epiawaremethod #169
Conversation
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.
In general I think this all looks good. Can look through in more detail or happy to wait until it goes from draft to full.
Its failing the
test on CI but not locally. Any thoughts? |
I think a detailed review would be good. |
…safe Neg bin sampling to identify shifting Rt
1eda853
to
c4cce0d
Compare
@SamuelBrand1 this is ready for review I think. There is an outstanding issue with the manypathfinder into NUTs in the getting started example that I think is unrelated but I am really not clear on. We also need to open some new issues to improve areas of this but as long as we do that I think we should move to merge asap as this is now very large, blocking, and complicated (none of which is ideal). I've closed some of the testing gaps but there are still a few I'd suggest we port to issues. I also think there could be someone better solutions for quite a few of the changes here but again I think we should split those out and implement as independent PRs |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
==========================================
- Coverage 99.31% 92.17% -7.14%
==========================================
Files 33 37 +4
Lines 293 358 +65
==========================================
+ Hits 291 330 +39
- Misses 2 28 +26 ☔ View full report in Codecov by Sentry. |
OK. I'm looking at this and the getting_started example |
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.
First, quick takeaway. I like the restructure in the files.
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.
Looking at getting_started
now
Want to make me a reviewer? I'm distant enough I think due to going on holiday in the middle of this PR? |
I can't because you opened it. We need to just mutually agree we are okay with merging and then can do |
I'm good. I approve. |
A draft PR for an
apply_method
method.Methods
The basic idea is that each behaviour of a
method
, which means either a sampling or optimization technique, has an_apply_method
dispatch which implements this.An important method is
EpiMethod
implies doing a sequence of optimizations passing infomation to each next level, then finally to a sampling methodNUTSampler
.apply_method
apply_method
has two methods:Turing
model object and applies the epi method.EpiProblem
and a data object, as well parameters to fix and/or condition on, creates an appropriate model and then apply the epi method.The output of
apply_method
is aNamedTuple
which returnssamples
as well asgens
, that is generated quantities if that makes sense for the returned object from_apply_method
, andmodel
which is the model (after any conditioning or fixing of parameters).TBD