-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove samples
and keep_size
from posterior_predictive
#5775
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
Comments
Hi, I'd be interested in working on this. I'm new to contributing to Seems like we'll want to update code and docstrings in |
That sounds right. I think the examples in the docs (for example but probably not restricted to: https://www.pymc.io/projects/docs/en/stable/learn/core_notebooks/posterior_predictive.html) are already not using either argument, but it'd be best to check too. |
Thanks! |
Another question: if the user passes The default behavior currently is to reshape (since |
I think we can also remove this and always return InferenceData. Unlike with |
I would prefer to keep having the trace option |
Here the options are dict and InferenceData, trace is only on pm.sample (which I agree can't be removed yet) |
Reshaping sounds alright. |
Is a dict also what we get from prior predictive with |
yep, we could get rid of the dict output in prior sampling I think |
Unless there is a large maintenance burden I rather keep it, I was just asking to understand if there was something special about posterior predictive. I understand a lot of people prefer InferenceData, but I find it a PITA to be honest. |
I see the benefits of a trace object with a simpler API, but the current implementation of BaseTrace/MultiTrace has some terrible incoherences. We'll always have a non- |
@michaelosthege this is about the dict alternative from prior/posterior_predictive. I also thought it was a Multitrace object, but it's even simpler than that. I don't see the problem woth a simple dict :) Also, I can come up with cases where the idata would fail, such as dynamic sized variables, although those are overall not supported in PyMC |
Happy to incorporate the decision either way in the PR. I can get back to it early this coming week. A bit of feedback as a user; the fact that the |
Also, not sure how important this is, but it seems that nearly all of the tests that do posterior predictive sampling currently use |
Since
w.r.t. to the original description of the issue, I'm also in favor of removing Lines 1812 to 1819 in 3f2afb2
Most tests use Likewise many tests use the |
A bit more work than what was needed for #5772, mostly because we use
samples
in several tests.Quoting @OriolAbril
The text was updated successfully, but these errors were encountered: