-
Notifications
You must be signed in to change notification settings - Fork 31
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
Some clean up of contexts #711
Conversation
it's no longer used functionality (was dropped when we dropped the logprob-macro)
Pull Request Test Coverage Report for Build 11740182612Details
💛 - Coveralls |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #711 +/- ##
==========================================
+ Coverage 81.90% 83.38% +1.48%
==========================================
Files 30 30
Lines 4200 4166 -34
==========================================
+ Hits 3440 3474 +34
+ Misses 760 692 -68 ☔ View full report in Codecov by Sentry. |
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 as remaining CI errors are known to be due to #702
Thanks @penelopeysm !
I think we need a way to test this though (as that would have caught the current bug). IMO every context should at be evaluated with both |
…placed much of the `test/contexts.jl` with calls to this method
Think this PR is ready for another round of reviews 👍 Added proper testing for the contexts + a |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Still looks good, save for one question!
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Penelope Yong <[email protected]>
Co-authored-by: Penelope Yong <[email protected]>
Thank you @penelopeysm ! |
A few tests are broken, stopping auto-merging from being completed. |
@yebai I don't think CI was going to pass on that merge 😄 |
It's likely some strange auto-merging queue behaviour; I haven't done anything here since my last comment. |
Oh haha, that's odd. GitHub doing GitHub things. I'll fix any remaining broken tests once it runs on master :) |
Wait what happened here? Nvm saw the other PR:) |
* Fix wrong function being called * Don't test setchildcontext on leaf contexts * Update src/test_utils/contexts.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fixed method ambiguities for DebugContext * test the context interface for DebugContext on multiple models * Update src/debug_utils.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Tor Erlend Fjelde <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@torfjelde Should this technically have been a minor bump, since functionality in test_utils was shuffled around? We haven't released anything since, so we can just bump on master before releasing:) |
Ah, yes good shout; should deffo have a minor version bump:) |
Okay, I'll sort it out~ |
Some cleanup of the context implementations:
PrefixContext
which doesn't actually work for.~
statements due to implementing the incorrect signature.tilde_*_assume/observe
methods forPriorContext
andLikelihoodContext
+ removed theirvars
field which is also not used any more (this was only used by the logprob macro which was removed in Remove theprob
andlogprob
macros #604 )