-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Always add values from drawn dict to givens #3792
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Thanks @lucianopaz I'll have a look at it as soon as I can grab a minute. I'll see what's going on with the checks and will also move my bug issue into the tests. |
Codecov Report
@@ Coverage Diff @@
## master #3792 +/- ##
==========================================
- Coverage 88.19% 87.42% -0.78%
==========================================
Files 89 88 -1
Lines 14358 14342 -16
==========================================
- Hits 12663 12538 -125
- Misses 1695 1804 +109
|
Rebased onto master to remove the merge conflict. |
I added a test for this issue to |
I have checked and the probabilities sum to This is in some sense a new issue in Possible approch:
Doing this for all the |
Hi @rpgoldman, I wasn't able to write down earlier what I investigated regarding the failing test.
def stick_breaking(beta):
portion_remaining = tt.concatenate([[1], tt.extra_ops.cumprod(1 - beta)[:-1]])
result = beta * portion_remaining
return result / tt.sum(result, axis=-1, keepdims=True)
It's quite nasty and will take some time to fix: BackgroundAll of our troubles with the The problem
The problem is that How can we fix this?We will have to restructure the |
Fixed that test. Thanks for providing the fix to the |
What's the status of this @rpgoldman, can we merge? |
Looks like this needs a rebase, and |
@rpgoldman @lucianopaz What's the status of this? The PR is marked to go into release 3.10, but it seems like a rebase is needed before this can be merged. |
OK, I have rebased this. I'm not at all sure what the status is, since the patch was by @lucianopaz, not me -- I just did a little tweaking. Let's see what happens on the tests after the rebase. |
45c316d
to
0b65a2c
Compare
@lucianopaz earlier there were some trivially failing tests due to missing imports (I think related to the rebase by @rpgoldman), but I fixed those. Now the tests appear to be failing in a more relevant manner. It would be great if you could have a look so that we can get this into 3.10 :) |
Thanks, @Spaak, but I won't be able to look into this before next year. From what I remember, there was a deeper problem with the mixture distribution that had to be fixed to get this to work, and I won't be able to fix it with sporadic work. |
Let's hold off on this then. |
Thanks for the quick reply, I'll remove this from 3.10 then. |
@lucianopaz @rpgoldman since the entire |
@lucianopaz @rpgoldman I squashed and rebased this branch. If this bugfix is still relevant, this might be the chance to get it into the |
I'm afraid I really don't know: the whole posterior predictive code base has changed. Probably this PR cannot be saved, but @lucianopaz should have the final word. |
Excluding the tests that failed because of changes in scipy's chisquared API, there are just two failures related to the changes made by this PR:
The second one is probably easy to fix, but the first one may be a systematic problem. @lucianopaz @rpgoldman fix and merge or close? |
Co-authored-by: Eelke Spaak <eelke.spaak@gmail.com> Co-authored-by: Robert P. Goldman <rpgoldman@sift.net> Co-authored-by: Michael Osthege <m.osthege@outlook.com>
446311b
to
3db1f29
Compare
Rebased, so the remaining CI failures are directly related to these changes. @lucianopaz can you make a decision to close or fix&merge this PR? |
I'm closing this. If anyone has an interest in it please fix the tests and reopen. |
This closes #3789
The problem was related to an old patch (b9f960a) that didn't really add all the drawn values from nested
_DrawValuesContext
into thegivens
dictionary indraw_values
. This PR makes sure to always add the necesary values fromdrawn
intogivens
.