-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Treat offset accordingly #534
Conversation
Predictions using offsets require more work on our predict method... I'll work on it in the following days. |
Meant to put comment as this is still in WIP
Codecov Report
@@ Coverage Diff @@
## main #534 +/- ##
==========================================
+ Coverage 86.84% 86.93% +0.08%
==========================================
Files 32 32
Lines 2622 2655 +33
==========================================
+ Hits 2277 2308 +31
- Misses 345 347 +2
Continue to review full report at Codecov.
|
@aloctavodia @canyon289 I would like approval before merging. I would like to check if you have any questions/concerns about how this works. |
@@ -356,3 +354,25 @@ def test_predict_include_group_specific(): | |||
|
|||
# When we include group-specific terms, these predictions are different | |||
assert not (idata_1.posterior["y_mean"] == idata_1.posterior["y_mean"][:, :, 0]).all() | |||
|
|||
|
|||
def test_predict_offset(): |
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.
These tests show that the model compiles and MCMC runs. What would be nice is a check that ensures the correct parameters are recovered as well. Not required for this PR just mentioning it
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.
Yeah, and this is the case for all our tests by the way. I think there's an issue for that, but we've never worked on it.
I think it's OK to merge this as it is now. We could work on tests for correctness in the future.
Co-authored-by: Ravin Kumar <ravinsdrive@gmail.com>
Co-authored-by: Ravin Kumar <ravinsdrive@gmail.com>
Co-authored-by: Ravin Kumar <ravinsdrive@gmail.com>
This PR closes #528
See example
Using
brms
we obtain..