-
Notifications
You must be signed in to change notification settings - Fork 7
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
Inconsistent sampling due to intermediate quantity not being updated #255
Comments
interesting, let me investigate, thanks a lot! |
ah, I caught the error, really stupid one, thanks for figure this out @miguelbiron the issue is in line where I should've use question about the MWE, should the final line be |
It was fine for showing the problem existed (if the assertion is true, the bug is there). For adding to the test suite, yeah you would reverse it But it might be overkill for diagnosin the issue in a unit test---this was just my way of triple checking that there was a problem. Maybe just testing for p_prod == p1*p2 after calling |
Btw thanks for fixing this so quickly! |
no problem man, thanks for the effort! version v0.7.5 should have the fix |
Hi @sunxd3 -- there's an issue with iid simulation from a BUGSModel. Apparently, calls to
evaluate!!(rng, model)
are not updating deterministic functions of unconditioned parameters. In the example below, this isp_prod
. This means that descendants of such nodes -- liken_heads
in the example below -- have the wrong distribution.This simulation tests shows that the distribution of
n_heads
is dictated by the value forp_prod
set at compile time, and not the values that are generated during calls toevaluate!!
.The text was updated successfully, but these errors were encountered: