Repository navigation
Fix main's CI and widen dependency compat - #446
Conversation
The Catalyst extension used `NamedDist`, which DynamicPPL removed; it now samples each species and rate under its own name through the calls `~` makes, keeping the flat names and conditioning. The renewal window update uses `cat`, as ReverseDiff's tracked `hcat` is ambiguous with SparseArrays' once both are loaded. Compat now admits Turing 0.49, Catalyst 17, FlexiChains 0.7, DocStringExtensions 0.10, MCMCChains 8 and CSV 1.3, with stdlib compat entries for the test and docs environments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwC7iygGpznktvYSbjCqxZ
…difiers Conditioning, fixing and prefixing a Catalyst-named variable are now tested. A renewal mixing a modifier that draws parameters with one that draws none failed Enzyme reverse; the resolved modifiers are now passed down the recursion rather than splatted back up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwC7iygGpznktvYSbjCqxZ
Try this Pull Request!Option 1: Julia Package ManagerOpen Julia and type: import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/ComposableTuringIDModels.jl", rev="fix/main-ci")
using ComposableTuringIDModelsOption 2: Local CheckoutIf you have the repo locally: git checkout fix/main-ci
julia --project=. -e "using Pkg; Pkg.instantiate()" |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 19 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Generated by Claude Code |
|
I haven't added it to the forward broken list, since that would mark a failing test as expected. Generated by Claude Code |
… path
Scoring a partially missing series built a `Vector{Any}` and narrowed it
to `Vector{Union{Missing, T}}`, which Enzyme's type analysis rejected in
forward and reverse mode.
The returned series is the data as given, so it comes from
`_restore_missing`, which the Enzyme extension marks inactive.
The scenario passes under both Enzyme modes, so its Enzyme reverse
broken entry goes; the log density and Mooncake gradient are about five
times faster.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iygGpznktvYSbjCqxZ
|
The Generated by Claude Code |
`@nolebase/vitepress-plugin-enhanced-readabilities` 2.21 needs VitePress 2.0 alpha, so `^2.14.0` now fails `npm install` against the docs' VitePress 1.6; 2.18.2 is the last release that supports both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WwC7iygGpznktvYSbjCqxZ
|
Generated by Claude Code |
|
📖 Documentation preview is ready! View the docs for this PR at: https://EpiAware.github.io/ComposableTuringIDModels.jl/previews/PR446/ This preview will be updated automatically when you push new commits. |
|
CI on
Generated by Claude Code |
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 — 9 benchmarks (by time change)
AD gradients — 7 benchmarks (by time change)
|
What this does
Gets
maingreen again and lets its dependencies move to their latest releases, so #430 can be tested against a workingmain.NamedDist, which DynamicPPL 0.42.14 removed, so every test job, the docs build and coverage failed on the Catalyst items.DynamicPPL names a sampled variable after the literal left-hand side of
~, and the extension's names (β,S, ...) come from the Catalyst system at run time.So
_named_tilde!!makes the calls~itself makes under aVarName{s.name}(): a fixed value is returned, a conditioned one is scored, and anything else is drawn.The flat variable names and conditioning by name are unchanged, and new tests cover conditioning, fixing and prefixing.
hcat(::Matrix{TrackedReal}, ::TrackedArray), which is ambiguous between ReverseDiff and SparseArrays once both are loaded, failingad / ReverseDiff (tape)and(compiled).It is now
cat(...; dims = 2).Renewal+ImportedCases) failed Enzyme's type analysis.The resolved modifiers are now passed down the recursion rather than splatted back up.
Vector{Any}and narrowed it toVector{Union{Missing, T}}, which Enzyme rejected in both modes.The returned series is the data as given, so it now comes from
_restore_missing, which the Enzyme extension marks inactive.DirectInfections+PartiallyMissingpasses under Enzyme forward and reverse, so its Enzyme reverse broken entry is removed.The scenario's log density is about 5 times faster (1.1–1.3 µs to 245 ns) and its Mooncake gradient about 6 times faster (21 µs to 3.6 µs).
The Runic bumps are left out, because Runic is pinned exactly in the managed formatter environment.
Checks
ad / ReverseDiff (tape)on Julia 1.13.4: 987 passed, 1 broken.ad / Enzyme reverseandad / Enzyme forwardon Julia 1.13.4 with Enzyme 0.13.221 no longer abort. In CI on4cfd9e5they gave 924 passed / 2 errored and 904 passed / 3 errored;1d3b573clearsDirectInfections+PartiallyMissing, leaving the two scenarios below.Not fixed here
Renewal+UncertainLatentDelayandRenewal+UncertainGenInterval, still fail in both modes.Their delay parameters are a
product_distributionof differently typed priors, aVector{Distribution}, and Enzyme rejects the union in Bijectors' product transform for it.That is upstream (Bijectors and Enzyme). Distributions has no tuple product to avoid it here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WwC7iygGpznktvYSbjCqxZ