Replies: 9 comments 3 replies
-
What is the point of |
Beta Was this translation helpful? Give feedback.
-
@ricardoV94 Right, I don't think we need it here (removed it above). |
Beta Was this translation helpful? Give feedback.
-
Im in favor of this, would be really nice syntactic sugar. It also will make downstream arviz usage eaiser for beginners since itll reduce the number of "you dont have prior/posterior predictive samples" which are needed for many plots and diagnostics |
Beta Was this translation helpful? Give feedback.
-
I like it. Would make some backend things easier too. Related proposal: Setting |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how much you would want to automate all of this. The Good Bayesian would want to look at the prior predictive output before they go ahead and fit the model, right? There is something to be said for deliberately conducting the workflow yourself, and adjusting as necessary along the way. |
Beta Was this translation helpful? Give feedback.
-
Crazy idea: what if we added the function, but kept its presence "for the experts' in the house" only? I'm maybe a quarter serious about this idea. There's value for expert practitioners who are familiar with their domain to automate routine things. I can see the reasons why @twiecki would want this automation. At the same time, I also see @fonnesbeck's point about deliberately conducting the workflow. I see no harm in it being present as a convenient shortcut that we don't have to write on our own. I would maybe only caution against using the shortcut in our examples, that's all. |
Beta Was this translation helpful? Give feedback.
-
I think our prior and posterior predictive sampling is very fast now. What if we just, by default, when calling |
Beta Was this translation helpful? Give feedback.
-
I think this functionality can be useful in some controlled situations -- like a lesson, where independent of the quality of the prior predictive checks, you still want to fit the model. But I agree with @fonnesbeck that one should always encourage that in more realistic scenarios you first do prior predictive checks, and only after that is OK, you fit the model. In summary, not against having it but would prefer not to advertise it as the new tool that simplifies bayesian workflow because it would be actually spreading a bad practice. |
Beta Was this translation helpful? Give feedback.
-
I don't think we should have this at all. Just write the function yourself, there's nothing wrong with that. Why should PyMC have to offer (and test and document) this? |
Beta Was this translation helpful? Give feedback.
-
All the good Bayesians who are following the proper Bayesian workflow are writing things like:
these days. Besides this syntax not being that pretty because of the extend, it's also verbose. So how about instead we have a
pm.sample_all()
that returns anInferenceData
with posterior, prior, prior predictive, and posterior predictive, all in one command?I think that would also help enforce best practices and make it much simpler, especially for beginners to do The Right Thing.
Beta Was this translation helpful? Give feedback.
All reactions