-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into prefix-method
- Loading branch information
Showing
60 changed files
with
789 additions
and
217 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,88 @@ | ||
pages = [ | ||
"EpiAware.jl: Real-time epidemic monitoring" => "index.md", | ||
"Manual" => Any[ | ||
"Getting Started with using Julia in Projects" => "man/getting-started-julia.md", | ||
"Examples" => [ | ||
"Getting started" => "examples/getting_started.md" | ||
] | ||
getting_started_pages = Any[ | ||
"Overview" => "getting-started/index.md", | ||
"Installation" => "getting-started/installation.md", | ||
"Quickstart" => "getting-started/quickstart.md", | ||
"Frequently asked questions" => "getting-started/faq.md", | ||
"Explainers" => [ | ||
"Overview" => "getting-started/explainers/index.md", | ||
"Working with Julia" => "getting-started/explainers/julia.md", | ||
"Introduction to EpiAware" => "getting-started/explainers/intro.md", | ||
"Modelling infections" => "getting-started/explainers/modelling-infections.md", | ||
"Inference" => "getting-started/explainers/inference.md", | ||
"Latent models" => "getting-started/explainers/latent-models.md", | ||
"Observation models" => "getting-started/explainers/observation-models.md" | ||
], | ||
"Tutorials" => [ | ||
"Overview" => "getting-started/tutorials/index.md", | ||
"Simple renewal with delays" => "getting-started/tutorials/simple-renewal-with-delays.md", | ||
"Nowcasting" => "getting-started/tutorials/nowcasting.md", | ||
"Multiple observation models" => "getting-started/tutorials/multiple-observation-models.md", | ||
"Multiple infection processes" => "getting-started/tutorials/multiple-infection-processes.md", | ||
"Partial pooling" => "getting-started/tutorials/partial-pooling.md" | ||
] | ||
] | ||
|
||
showcase_pages = Any[ | ||
"Overview" => "showcase/index.md", | ||
"Replication" => [ | ||
"On the derivation of the renewal equation from an age-dependent branching process: an epidemic modelling perspective" => "showcase/replications/mishra-2020/index.md" | ||
] | ||
] | ||
|
||
what_is_pages = [ | ||
"Overview" => "overview.md" | ||
] | ||
|
||
module_pages = Any[ | ||
"EpiAware" => [ | ||
"Overview" => "lib/index.md", | ||
"Public API" => "lib/public.md", | ||
"Internal API" => "lib/internals.md" | ||
], | ||
"EpiAwareBase" => [ | ||
"Overview" => "lib/EpiAwareBase/index.md", | ||
"Public API" => "lib/EpiAwareBase/public.md", | ||
"Internal API" => "lib/EpiAwareBase/internals.md" | ||
], | ||
"Reference" => Any[ | ||
"Public API" => "lib/public.md" | ||
"EpiAwareUtils" => [ | ||
"Overview" => "lib/EpiAwareUtils/index.md", | ||
"Public API" => "lib/EpiAwareUtils/public.md", | ||
"Internal API" => "lib/EpiAwareUtils/internals.md" | ||
], | ||
"Developers" => [ | ||
"Contributing" => "man/contributing.md", | ||
"Release checklist" => "checklist.md", | ||
"Internals" => "lib/internals.md" | ||
"EpiInference" => [ | ||
"Overview" => "lib/EpiInference/index.md", | ||
"Public API" => "lib/EpiInference/public.md", | ||
"Internal API" => "lib/EpiInference/internals.md" | ||
], | ||
"EpiInfModels" => [ | ||
"Overview" => "lib/EpiInfModels/index.md", | ||
"Public API" => "lib/EpiInfModels/public.md", | ||
"Internal API" => "lib/EpiInfModels/internals.md" | ||
], | ||
"EpiLatentModels" => [ | ||
"Overview" => "lib/EpiLatentModels/index.md", | ||
"Public API" => "lib/EpiLatentModels/public.md", | ||
"Internal API" => "lib/EpiLatentModels/internals.md" | ||
], | ||
"EpiObsModels" => [ | ||
"Overview" => "lib/EpiObsModels/index.md", | ||
"Public API" => "lib/EpiObsModels/public.md", | ||
"Internal API" => "lib/EpiObsModels/internals.md" | ||
] | ||
] | ||
|
||
developer_pages = [ | ||
"Overview" => "developer/index.md", | ||
"Contributing" => "developer/contributing.md", | ||
"Release checklist" => "developer/checklist.md" | ||
] | ||
|
||
pages = [ | ||
"EpiAware.jl: Real-time infectious disease monitoring" => "index.md", | ||
"Getting started" => getting_started_pages, | ||
"Showcase" => showcase_pages, | ||
"What is EpiAware?" => what_is_pages, | ||
"Modules" => module_pages, | ||
"Developers" => developer_pages, | ||
"release-notes.md" | ||
] |
File renamed without changes.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# [Developer documentation](@id developer) | ||
|
||
Welcome to the `EpiAware` developer documentation! This section is designed to help you get started with developing the package. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Explainers | ||
|
||
This section contains a series of explainers that provide a detailed overview of the EpiAware platform and its features. These explainers are designed to help you understand the platform and its capabilities, and to provide you with the information you need to get started using EpiAware. See the sidebar for the list of explainers. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Inference |
25 changes: 25 additions & 0 deletions
25
EpiAware/docs/src/getting-started/explainers/interfaces.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Interfaces | ||
|
||
We support two primary workflows for using the package: | ||
|
||
- `EpiProblem`: A high-level interface for defining and fitting models to data. This is the recommended way to use the package. | ||
- `Turing` interface: A lower-level interface for defining and fitting models to data. This is the more flexible way to use the package and may also be more familiar to users of `Turing.jl`. | ||
|
||
See the getting started section for tutorials on each of these workflows. | ||
|
||
## EpiProblem | ||
|
||
Each module of the overall epidemiological model we are interested in is a `Turing` `Model` in its own right. In this section, we compose the individual models into the full epidemiological model using the `EpiProblem` struct. | ||
|
||
The constructor for an `EpiProblem` requires: | ||
|
||
- An `epi_model`. | ||
- A `latent_model`. | ||
- An `observation_model`. | ||
- A `tspan`. | ||
|
||
The `tspan` set the range of the time index for the models. | ||
|
||
## Turing interface | ||
|
||
The `Turing` interface is a lower-level interface for defining and fitting models to data. This is the more flexible way to use the package and may also be more familiar to users of `Turing.jl`. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Introduction | ||
|
||
The diagram below shows the relationship between the modules in the package for a typical workflow. | ||
|
||
```mermaid | ||
flowchart LR | ||
A["Underlying GI | ||
Bijector"] | ||
EpiModel["AbstractTuringEpiModel | ||
---------------------- | ||
Choice of target | ||
for latent process: | ||
DirectInfections | ||
ExpGrowthRate | ||
Renewal"] | ||
InitModel["Priors for | ||
initial scale of incidence"] | ||
DataW[Data wrangling and QC] | ||
ObsData["Observational Data | ||
--------------------- | ||
Obs. cases y_t"] | ||
LatentProcPriors["Latent process priors"] | ||
LatentProc["AbstractTuringLatentModel | ||
--------------------- | ||
RandomWalk"] | ||
ObsModelPriors["Observation model priors | ||
choice of delayed obs. model"] | ||
ObsModel["AbstractObservationModel | ||
--------------------- | ||
DelayObservations"] | ||
E["Turing model constructor | ||
--------------------- | ||
generate_epiaware"] | ||
G[Posterior draws] | ||
H[Posterior checking] | ||
I[Post-processing] | ||
A --> EpiData | ||
EpiData --> EpiModel | ||
InitModel --> EpiModel | ||
EpiModel -->E | ||
ObsData-->E | ||
DataW-.->ObsData | ||
LatentProcPriors-->LatentProc | ||
LatentProc-->E | ||
ObsModelPriors-->ObsModel | ||
ObsModel-->E | ||
E-->|sample...NUTS...| G | ||
G-->H | ||
H-->I | ||
``` |
Oops, something went wrong.