-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix check for missing rv in factorized_joint_logprob #151
Conversation
Can you add a test? Your example should be fine just assert that the warning raised in one case but not the other, but the output is the same. |
Done! There was already a test for this, I just added a verification for |
You can just cherry pick (or copy) this commit: e0f9623 |
b6fed3b
to
37d7e30
Compare
Done! |
You should have the two commits separate. One for the xfail and the other for the bugfix and new test condition. |
b82d518
to
2ff42f3
Compare
Done! Thanks for the clarification |
Small nitpick: the test and respective bugfix make sense to go in the same commit |
787a683
to
312cbed
Compare
312cbed
to
c4c4fcd
Compare
After several attempts and many force pushes, I think that I got it right (?) 😅 |
c4c4fcd
to
832e329
Compare
Codecov Report
@@ Coverage Diff @@
## main #151 +/- ##
=======================================
Coverage 94.88% 94.88%
=======================================
Files 12 12
Lines 1779 1780 +1
Branches 262 263 +1
=======================================
+ Hits 1688 1689 +1
Misses 51 51
Partials 40 40
Continue to review full report at Codecov.
|
This adapts to the change in behavior introduced in aesara-devs/aeppl#151.
* Bump Aesara to v2.7.5 * Bump aeppl to v0.0.32 * Revert warn_missing_rvs to default value of True See #5955 (comment) This adapts to the change in behavior introduced in aesara-devs/aeppl#151.
Currently, random variables that are not provided with their value variable equivalent can result in a
KeyError
infactorized_joint_logprob
when givenwarn_missing_rvs=False
. This error rose when working with a graph corresponding to a Gaussian random walk.The following code chunk yields a
KeyError
:but setting
warn_missing_rvs=True
only issues warnings.In this PR, so far, I fix the case where users decide to not issue warnings.