Repository navigation
Document the simulated route to a serial interval for shared-trajectory models - #1246
Conversation
…oute 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>
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1246 +/- ##
==========================================
+ Coverage 97.79% 97.84% +0.05%
==========================================
Files 104 104
Lines 11757 12176 +419
==========================================
+ Hits 11498 11914 +416
- Misses 259 262 +3
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:
|
|
Relayed for @sbfnk: The docstring, the error suffix, the tutorial sentence and the changelog entry present simulation as the only route, but the interval can be computed from trajectory draws, and #1254 plans that method. Reword them to say that |
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
|
Reworded the docstring, the error suffix (shared by the per-case generation time, missing or per-case incubation period, and trajectory errors), the tutorial sentence and the changelog entry. They now say |
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
serial_interval(model, infector, infectee)stays analytic. It does not yet handle a model whose onset and infectiousness share a within-host trajectory, and the docstring says so. For now, fit a distribution torealised_serial_intervals(states)of simulated states. The tutorial on calibrating a trajectory says thatserial_intervaldoes not yet handle such a model, so it throws.The error for a per-case generation time, which a trajectory-driven kernel gives, now ends with a conditional pointer to
realised_serial_intervals. The errors for a missing or per-case incubation period keep their original messages.Checked with
test/test_serial_interval.jl, including new tests that the trajectory model's error namesrealised_serial_intervalsand that the missing-incubation error does not. I did not run the docs build. No new function is added, so there is no seeding question.This PR closes #1223.