-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix(bug): correct exposure_expanded matrix calculation avoiding loops #153
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #153 +/- ##
==========================================
- Coverage 70.07% 68.12% -1.95%
==========================================
Files 10 10
Lines 1751 1754 +3
==========================================
- Hits 1227 1195 -32
- Misses 524 559 +35 ☔ View full report in Codecov by Sentry. |
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.
This issue was not detected by tests so can we add tests to ensure it doesn't pop up again?
The reason why the tests did not detect this problem was because we were using incorrectly the function I decided to split the tests for the constant and the time-varying models into separate files in preparation for future tests that will be incorporated once we implement the additional time-varying models (#69 ) and age-vaying models (#74 ), which may be relevant for #85 . |
- Replace incorrect use of `testthat::expect_equal()` for correct comparison of `get_prev_expanded_clean` outputs with corresponding benchmarks. - Split modelling testing by type of models (constant and time-varying)
4ad05c8
to
22244db
Compare
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, this is very helpful!
For the tolerance specification, this feels more like a stats question so I'll let you double check with others if necessary.
Co-authored-by: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com>
This PR fixes the bug described in #145 . The right exposure triangular matrix with respect to the anti-diagonal is computed avoiding
for
loops by: