Skip to content

Getting started ​

A recurrence computes each value from its own past values, such as infections from earlier infections. A convolution weights the past values of another series, such as reported cases from earlier infections. Recurrence and Convolution are the two operators. Couplings link strata, such as towns, and modifiers add behaviour such as finite pools to each step. Every operator is differentiable. Operators run on CPU threads and on GPU arrays through executors. On Julia 1.12 and later, a forward run compiles into a trimmed executable with juliac.

Where to start ​

Extensions ​

Each extension loads by itself when you load its packages alongside ComposableRecurrences. None is needed to build or run a model.

LoadAddsUse it forPage
using DistributionsDiscrete distributions as delay kernelsDelays from a named distributionDistributions
using CensoredDistributions, DistributionsContinuous distributions as kernels, censored to whole lagsContinuous delaysCensoredDistributions
using ForwardDiffDual-number local step for couplings and modifiers without a pullback!Faster reverse-mode gradients through themForwardDiff
using EnzymeEnzyme reverse-mode rulesEnzyme gradientsEnzyme
using MooncakeMooncake reverse-mode rules and test_adjointMooncake gradientsMooncake
using ADTypes, Enzyme, EnzymeTestUtilstest_adjoint for AutoEnzymeTesting a new ruleEnzymeTestUtils
using FFTWFFT lag sums for ConvolutionLong kernels over long seriesFFTW
using Functorsconvert_floatsRuns in Float32Functors
using KernelAbstractionsParallel executor and Adapt rulesKernels without a GPU packageKernelAbstractions
using CUDA, KernelAbstractions, or any GPUArrays backendCalls on device arrays, including CSR couplings, run as kernelsGPUsGPUArrays
using Reactant, KernelAbstractions, CUDACompiled calls on traced arraysCompiling a model with ReactantReactant

Getting help ​

For usage questions, ask on the Julia Discourse or the epinowcast community forum, our home for epidemiological modelling questions. Please use GitHub issues for bug reports and feature requests only.