Repository navigation
Speed up generation depletion draws - #1267
Merged
Merged
Conversation
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
Contributor
Benchmark comparison vs baseMinimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:
Evaluation — 19 benchmarks (by time change)
AD gradients — 0 benchmarks (by time change)none |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1267 +/- ##
==========================================
- Coverage 97.80% 97.80% -0.01%
==========================================
Files 104 104
Lines 11852 11895 +43
==========================================
+ Hits 11592 11634 +42
- Misses 260 261 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
Collaborator
Author
|
Added the final return required by Runic in the depletion sampler. The Runic check and generation-count tests pass. |
sbfnk-bot
marked this pull request as ready for review
November 26, 2026 23:16
sbfnk
approved these changes
Nov 27, 2026
sbfnk
deleted the
issue-1266-draw-the-depletion-binomial-of-a-generat
branch
November 27, 2026 09:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use inversion and rejection sampling for single-type depletion binomials at smaller means within
PerContactDepletion, retaining the standard sampler for larger means and populations. Timing comparisons showed faster draws at the smaller means tested.Binomial mean and variance checks, generation-count tests and formatting checks passed.
This PR closes #1266.