Repository navigation
Done
Labels
documentationImprovements or additions to documentation
Description
Read on main at b71b1e4, with the models behind every quoted number re-run (all match).
The fixed items from the #366 review are done: the four wrong statements, the renames in the docstrings and the API overview, the two-meaning symbols on that page, and most pointer sentences.
Every tutorial section now gives its maths first, and no tutorial prints arrays.
What is left, ranked:
- Eleven tutorials, against six.
Lines: renewal 149, vaccination 106, imports 61, clinical 103, forecasting 60, reproduction number 113, latent 285, spatial 271, time-varying 214, occupancy 239, branching 218.
renewal-then-delay.jlrepeats the overview's renewal, delay and depletion steps;forecasting.jlrepeatsoperators.md:57-77;clinical-outcomes.jl:69-77repeatstime-units.md:47-54.
Fold imports, forecasting and clinical outcomes into Renewal then delay without its copy of the overview, and trim latent processes and spatial strata under 250 lines. - The Performance sections are not honest in prose.
Several plots show the package slower than the hand loop and the page says nothing: occupancy (forward 12.8 against 4.3 µs; ForwardDiff 3,619 against 825), vaccination (ForwardDiff 3,908 against 1,514), reproduction number (ForwardDiff 6,056 against 3,758), latent processes (Enzyme 3.5 against 1.7).
README.md:23still says "close to or faster than a hand-written loop".
Everydocs.csvrow is at df005c5, before Write a traced call's trace in its step; join its output in place #348 and Cut dual-number work in Depletion flows and independent runs #393 (which targets the Depletion-flow gap), so regenerate first (Regenerate docs.csv on main b71b1e4 #400), then say where the package is slower and soften the README line.
Also: no page says how its hand loop is written, or that the reverse-mode hand loop is plain AD while the package uses its rules; and four pages time a different model from the one they show (spatial: 5 strata with floored depletion against 3 patches with hazard; branching; occupancy; latent processes: an AR(2) only). - README and overview maths disagree with their code on the seed days.
README.md:37andindex.md:200sum infections back before day 1, andREADME.md:48says town A has 10 infections on each of those days, butdelay(infections; gain = 0.4)takes them as zero: on day 1 in town A the maths gives 4.0 reports and the code 0.
Passhistory = seedto the delay, or say in the maths that reports start from day 1's infections. - Eight concepts still have two or more homes: the step equation (
api-overview.md:33-38,shapes-and-couplings.md:42,adjoints-and-backends.md:19), the modifier chain, the hazard form (five places), the floor form (index.md:274andrenewal-then-delay.jl:84, with two different formulas), the delay, change points, the lag origin and the time base.
Start with the floor form. - Renames not finished:
operators.md:44(g_4for the gain),shapes-and-couplings.md:29(κ * Recent(7)where the API overview uses β) and:59,spatial-strata.jl:242, the domain guide'sRoutes((C₁, w₁), …)(infectious-disease-models.md:25), andtransform.jl's offspring matrix (Kin the maths,Min the code). - Symbols with two meanings on one page: the domain guide's
C(reports, a coupling, the confirmed ward, a capacity) andM;κin latent processes;qandkin transform;ein vaccination;Din time-varying delays. - One symbol per concept: the pool is
sin the overview andSin four tutorials; the delay isw_l,d_landw_ijin different places. - Overview order: the Performance section (
index.md:256-266) speaks of "the package's rules" before Gradients (:323) defines a rule; move it after.
"Changing the model" does not run as shown:FloorandAddare imported in a hidden line (:263), andι(:284) is defined only inside a details block (:312). - New pointer sentences: each tutorial's "It builds on" line (two in a row at
renewal-then-delay.jl:5-7),time-varying-delays.jl:149,latent-processes.jl:36,modifiers.md:43,index.md:349,README.md:23. - New features:
transposehas no example of when to use it; the reproduction-number ratio has four homes (api-overview.md:115-116, the tutorial, the domain guide and the docstring);reproduction_numberis never shown in use.
Smaller: index.md:185 says infections peak while R is 1.3 with no reason; time-varying-delays.jl:29 calls μ_t "means"; time-varying-delays.jl:60 names the internal Secondary() unqualified; an unlisted draft threads-and-gpus.jl remains.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Activity
seabbs-bot commentedon Nov 3, 2026
Status at f3fb062 (3 November): of the ten items, none is done, five are partly done and five untouched.
Good and unchanged: the README is the finished model, the overview builds it step by step with a plot per step, every tutorial gives maths first and prints no arrays.
docs/pages.jl:35-45); time-varying grew 214 to 245 lines;threads-and-gpus.jlstill presentdocs.csvregenerated (#400) and each section names its model and "a preallocated hand-written loop"; no section says where the package is slower (occupancy forward 9.7 against 4.4 µs, ForwardDiff 1,916 against 777; vaccination and reproduction number ForwardDiff; latent Enzyme 3.3 against 1.7);README.md:23unchanged; the caption (docs/performance.jl:40-43) does not say the hand loop is plain AD; spatial and latent still time a different modelindex.md:71now says infections before day 1 count as zero, for the one-town step only;README.md:37, 48, 69andindex.md:200, 211, 219unchanged. Confirmed: town A's day-1 reports are 0 in the code and 4.0 withhistory = seed, which matches the maths, andoperators.md:108itself says to pass the seed as the delay's historyindex.md:262,renewal-then-delay.jl:83, theFloordocstring with α)Routes,movementdone);operators.md:44,shapes-and-couplings.md:30, 61-85,spatial-strata.jl:242, the domain guide:25remains/S;w_l/d_l)index.md:244before Gradients at:311; hiddenFloor/Addimport at:251;ιused at:272, defined at:300)reproduction_numberis gone;transposehas only a table row; the R_t ratio has four homesRanked next steps: unblock the docs build (#420: add FFTA to
docs/Project.tomlwith a compat bound now, fix the extension later); after #418 merges, one sentence per Performance section naming the slower targets, andREADME.md:23changed to say the package is faster in reverse mode while the forward run and ForwardDiff are level or up to 2.6x slower; passhistory = seedin the README and overview and regenerate the figure; then the six-tutorial fold, the floor form and step equation homes, and the overview order.On #414 (executed samples), see the review there.
Generated by Claude Code
seabbs-bot commentedon Nov 4, 2026
Status at 455b7fd.
Three things changed since the last comment.
First, #418 regenerated
benchmark/results/docs.csvon main, so every row is now at f3fb062.Second, #425 fixed the FFTA ambiguity (#420), and the Documenter build passes on main at 455b7fd.
Third, #416 made the overview's hidden import
Floor, Transform(docs/src/getting-started/index.md:251), and no page still namesAdd,Clamp,SoftTruncate,movementorRoutes.Not done: there are still 11 tutorials (
docs/pages.jl:35-45), andREADME.md:23still says "close to or faster than a hand-written loop".No Performance section says where the package is slower.
README.md:69andindex.md:219still calldelay(infections; gain = 0.4)with nohistory = seed.Performance (
index.md:244) still comes before Gradients (:311).Next step: now that #418 is in, add one sentence to each Performance section that names its slower targets, using the ratios in #417, and soften
README.md:23to match.Generated by Claude Code
seabbs commentedon Nov 21, 2026
Status on main at f51707f.
threads-and-gpus.jlis deleted by #795.docs/performance.jllists the slower cases per target (slower_cases). The caption says when the reverse bars run with the rules.history = seedto the delay.renewal-then-delay.jlas theFloordocstring and three-towns do. The pages still restate it, and the step equation and the hazard form still appear in more than one place.g_4,κ * Recent,Routesand the domain guide'sC₁are gone, and the spatial plot names routes asK_r, g_r.κonce, for the saturation, and the domain guide's survival is\bar F_l.Floor, Transformin view, withιdefined in the shown loop.T), andreproduction_numberis gone. The R_t ratio still has several homes (API overview, tutorial, domain guide,pressuredocstring).meansis named as the code's name for\mu_t, andSecondary()is qualified and linked.What remains (item 1, and the rest of item 4) is content consolidation: which tutorials to fold, and which page each concept lives on.
Generated by Claude Code
seabbs commentedon Nov 21, 2026
Item 1 (the tutorial fold) and the broad part of item 4 (each concept's single home) wait on a maintainer call. No tutorial will be folded or deleted until then.
Generated by Claude Code
seabbs-bot commentedon Nov 23, 2026
#828 settles the one-home part of item 4 for the API overview and the How it works pages.
explanation-step).The overview and Adjoints and backends link to it and no longer restate it.
Each overview section is now a short signpost.
ONE_HOMEintest/package/standards_config.jlgains a check for each of these, so a second copy fails the standards tests.The tutorial, the domain guide and the
pressuredocstring still mention it.Still open: the hazard and floor forms are restated in three-towns, some tutorials and the domain guide, and the tutorial fold (item 1) waits on a maintainer call.
Generated by Claude Code
seabbs-bot commentedon Dec 1, 2026
Outcome: resolved, apart from the tutorial fold, which is declined; closed
Each item was checked against the docs on the redesigned branch (#907 at 21fb0bb).
The overview is now
docs/src/getting-started/three-towns.md.README.md:21now says only "The aim is the speed of hand-written loops".docs/src/performance/summary.mdgives each example's ratios, counts the examples slower than each alternative, and links the table that names the slower cases, all generated frombenchmark/results/docs.csvREADME.md:69andthree-towns.md:199:delay(infections; gain = 0.4, history = seed)renewal-then-delay.jl:80, theFloordocstring andthree-towns.md:261. The step equation has one home,operators.md:11g_4,Routes(orκ * Recent;transform.jl:30and:100name the offspring matrixKin maths andK_housein codeCis reports only andMthe movement share;κin latent processes,qin transform and vaccination, andDin time-varying delays each have one meaning in their sectionSin the overview and every tutorial. Docstrings write a modifier's state ass, the argument ofstep(m, θ, v, s)three-towns.md:280) comes before Performance (:317);FloorandTransformare imported in a shown line (:246)operators.md:93-100shows when to use the transpose. The reproduction ratio has its tutorial.growth_rateis not shown, as it is listed for removal in #916threads-and-gpus.jlis deleted;meansandSecondary()are qualifiedWhy the fold is declined
The item asks to fold imported cases (60 lines), forecasting (60) and clinical outcomes (98) into Renewal then delay (144), and to keep every tutorial under 250 lines.
The folded page would be about 360 lines, over the limit the same item sets.
Each of the three is a one-screen page that answers one question, and the navigation lists them by task.
Latent processes (270 lines) and spatial models (265) are still over 250; trimming them is a prose edit with no technical change, and can be done with the next edit of either page.
Generated by Claude Code