AlgebraicJulia / AlgebraicJulia/Structured-Epidemic-Modeling
Problem wiring a simple SEIR model
- 主要语言
- Jupyter Notebook
- 星标
- 16
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
描述
For some reason, the following code for an SEIR model wires E to R, rather than I to R. Can anyone spot where I'm going wrong?
```julia
using AlgebraicPetri,AlgebraicPetri.TypedPetri
using Catlab, Catlab.CategoricalAlgebra, Catlab.Programs
using Catlab.WiringDiagrams, Catlab.Graphics
using AlgebraicDynamics.UWDDynam
epi_transitions = LabelledPetriNet(
[:Pop],
:infection=>((:Pop, :Pop)=>(:Pop, :Pop)),
:progression=>(:Pop=>:Pop),
:recovery=>(:Pop=>:Pop)
)
seir_uwd = @relation () where (S::Pop, E::Pop, I::Pop, R::Pop) begin
infection(S, I, E, I)
progression(E, I)
recovery(I, R)
end
seir_acst = oapply_typed(epi_transitions, seir_uwd, [:β, :δ, :γ])
seir_lpn = dom(seir_acst)
Graph(seir_lpn)
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。