-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Update docstring and args #823
Conversation
bambi/models.py
Outdated
``posterior_predictive`` group to ``idata``. If any of these already exist, it will be | ||
overwritten. | ||
``idata`` with the predictions added. If ``kind="response_params"``, a new variable | ||
with the name of the parent parameter, e.g. ``"mu"`` or ``"p"``is added to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it can be multiple parameters (e.g. both mu and sigma)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I updated it to include 2 minimal examples (Gaussian and Bernoulli) so the user can reason what parameters to expect in the posterior group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #823 +/- ##
==========================================
- Coverage 90.01% 89.94% -0.08%
==========================================
Files 47 47
Lines 3967 3969 +2
==========================================
- Hits 3571 3570 -1
- Misses 396 399 +3 ☔ View full report in Codecov by Sentry. |
This PR changes the docstring of
kind
inmodel.predict
to reflect the changes in #804.Additionally, in the
interpret
functionpredictions
, we allow the user to compute posterior predictive samples. I updated the argument passed tomodel.predict
fromkind="pps"
tokind="response"
to reflect the changes in the merged PR above.