-
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
455 plotting methods of prior predictive #462
Merged
seabbs
merged 12 commits into
404-upgrade-the-testmode-pipeline-script-to-just-pipeline-script
from
455-plotting-methods-of-prior-predictive
Oct 1, 2024
Merged
455 plotting methods of prior predictive #462
seabbs
merged 12 commits into
404-upgrade-the-testmode-pipeline-script-to-just-pipeline-script
from
455-plotting-methods-of-prior-predictive
Oct 1, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try this Pull Request!Open Julia and type: import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/CDCgov/Rt-without-renewal", rev="455-plotting-methods-of-prior-predictive", subdir="EpiAware")
using EpiAware |
seabbs
approved these changes
Oct 1, 2024
add missing handling as well
and give fail cover with error report
in favour of direct test of prior_predictive_plot
seabbs
force-pushed
the
455-plotting-methods-of-prior-predictive
branch
from
October 1, 2024 11:18
ed176b5
to
67cc102
Compare
seabbs
merged commit Oct 1, 2024
e4951b4
into
404-upgrade-the-testmode-pipeline-script-to-just-pipeline-script
3 checks passed
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 404-upgrade-the-testmode-pipeline-script-to-just-pipeline-script #462 +/- ##
=================================================================================================
Coverage 89.91% 89.91%
=================================================================================================
Files 57 57
Lines 734 734
=================================================================================================
Hits 660 660
Misses 74 74 ☔ View full report in Codecov by Sentry. |
This was referenced Oct 3, 2024
github-merge-queue bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
…dictive + full (#445) * remove most compat from pipeline * Update test_pipelinefunctions.jl * Fix the truthdata output to be missing or Int * change to daily increments in latent processes * Change default AD mode to ReverseDiff{true} * Create changelog.md * reformat * change filename * Update simulate.jl * add a testmode to pipelinetypes * tighten typing * fix constructor * fix constructor * pipeline helper functions * unit tests and end-to-end tests * remove old scripts * Fix y_t type * bring inference prefixing into line with truthdata prefixing * reformat * interim commit * rename and collect plot functions * tidy up tests * basic plots to Makie * new plot tests and test reorganisation * Update runtests.jl * reformat * 455 plotting methods of prior predictive (#462) * add priorpredictive method to make_inference * Add pipeline priorpredictive boolean * reformat * remove inference_method kwarg because can be dispatched on * remove specialisation on forecast results add missing handling as well * move inference step into own function and give fail cover with error report * remove passing inference_method * add a latent model name to InferenceConfig * Util for setting up PI levels * prior pred plot * export prior_predictive_plot * remove dead end-to-end test in favour of direct test of prior_predictive_plot * Make pipeline inference tests more focused (#475) * fix tests and capture forecasting failures * delete stale end-to-end test * Full priorpred check pipeline script (#476) * Hotfix: Doc link to main * create xexpy function with x = 1 typestable (#473) * rename data folder * catch bug where objects were getting saved to root dir * fix bug where being saved to root * add priorpredictive mode to the inference config struct * do_truthdata behaviour modifed by prior predictive * send priorpredictive mode in generate_inference * update tests * prior predictive pipeline * reformat --------- Co-authored-by: Sam Abbott <[email protected]> * Add oneexpy to pipeline (#480) * Changed saved prior predictive data (#478) * change to pipeline being part of InferenceConfig This also splits figure saving from data saving * fix passed var * change serialisation target dir * update tests and config usage to pass pipeline object --------- Co-authored-by: Sam Abbott <[email protected]> * Update run_priorpred_pipeline.jl * Only save strings rather than Exception objects --------- Co-authored-by: Sam Abbott <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR merges a function for making an informative prior predictive plot for any given model scenario into the branch where I am resolving #433 . This is part of my solution for #433 : informed priors that have non-degenerate sampling proprerties for each model category.
NB: This PR does not fix #433 and the branch where I am working on this should still not be merged into main. Due to the same underlying issue (I think extremely bad priors for some models) the tests on this branch occasionally failed with
trunc
errors for very large generated numbers.Closes #455
Underlying infra changes:
priorpredictive
which triggersPrior
sampling of the model specified by a configuration.inference_method
as akwarg
to various functions. This is dealt with by dispatching on the above.