-
Notifications
You must be signed in to change notification settings - Fork 158
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
batch size for posterior rejection sampling. #340
Conversation
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 for tackling this! I saw too late that you had only commited and not yet requested review....so probably this is still WIP. Anyways, I had already written some comments, here they are ;)
2233c14
to
e3ac4e5
Compare
Codecov Report
@@ Coverage Diff @@
## main #340 +/- ##
==========================================
+ Coverage 73.62% 73.65% +0.02%
==========================================
Files 48 48
Lines 2684 2687 +3
==========================================
+ Hits 1976 1979 +3
Misses 708 708
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
e3ac4e5
to
d05cd57
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.
Looks good to me!
This will hopefully speed up rejection sampling from the posterior in case of leakage.
I moved the sampling and sample rejection to a separate function to reduce code repetition.