Skip to content

Commit 87d8e86

Browse files
committed
add basic model saving and loading functionality
1 parent 26cb14a commit 87d8e86

File tree

9 files changed

+495
-318
lines changed

9 files changed

+495
-318
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
*.bak
2+
.DS_Store
3+
*.png
4+
*.csv
15
# Byte-compiled / optimized / DLL files
26
__pycache__/
37
*.py[cod]

models/SIR.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Epidemic Model with 3 compartments and 2 transitions:
2+
3+
Parameters:
4+
beta : 0.200000
5+
mu : 0.100000
6+
7+
8+
Transitions:
9+
- S + I = I beta
10+
- I -> R mu
11+
12+
# R0=2.00

0 commit comments

Comments
 (0)