-
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 pull request #321 from nanglo123/create_eval_epi_scenario1_note…
…books Create Notebook for evaluation2024.03 epi_scenario_1 model b
- Loading branch information
Showing
2 changed files
with
430 additions
and
0 deletions.
There are no files selected for viewing
256 changes: 256 additions & 0 deletions
256
notebooks/evaluation_2024.03/epi_scenario1/epi_scenario1_model_b.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
174 changes: 174 additions & 0 deletions
174
notebooks/evaluation_2024.03/epi_scenario1/scenario1_model_b_petrinet.json
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,174 @@ | ||
{ | ||
"header": { | ||
"name": "Model", | ||
"schema": "https://raw.githubusercontent.com/DARPA-ASKEM/Model-Representations/petrinet_v0.6/petrinet/petrinet_schema.json", | ||
"schema_name": "petrinet", | ||
"description": "Model", | ||
"model_version": "0.1" | ||
}, | ||
"properties": {}, | ||
"model": { | ||
"states": [ | ||
{ | ||
"id": "s", | ||
"name": "s", | ||
"grounding": { | ||
"identifiers": { | ||
"ido": "0000514" | ||
}, | ||
"modifiers": {} | ||
} | ||
}, | ||
{ | ||
"id": "i", | ||
"name": "i", | ||
"grounding": { | ||
"identifiers": { | ||
"ido": "0000511" | ||
}, | ||
"modifiers": {} | ||
} | ||
}, | ||
{ | ||
"id": "b", | ||
"name": "b", | ||
"grounding": { | ||
"identifiers": { | ||
"ido": "0000592" | ||
}, | ||
"modifiers": { | ||
"status": "broad" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "r", | ||
"name": "r", | ||
"grounding": { | ||
"identifiers": { | ||
"ido": "0000592" | ||
}, | ||
"modifiers": { | ||
"status": "full" | ||
} | ||
} | ||
} | ||
], | ||
"transitions": [ | ||
{ | ||
"id": "t1", | ||
"input": [ | ||
"i", | ||
"s" | ||
], | ||
"output": [ | ||
"i", | ||
"i" | ||
], | ||
"properties": { | ||
"name": "t1" | ||
} | ||
}, | ||
{ | ||
"id": "t2", | ||
"input": [ | ||
"i" | ||
], | ||
"output": [ | ||
"b" | ||
], | ||
"properties": { | ||
"name": "t2" | ||
} | ||
}, | ||
{ | ||
"id": "t3", | ||
"input": [ | ||
"b" | ||
], | ||
"output": [ | ||
"r" | ||
], | ||
"properties": { | ||
"name": "t3" | ||
} | ||
} | ||
] | ||
}, | ||
"semantics": { | ||
"ode": { | ||
"rates": [ | ||
{ | ||
"target": "t1", | ||
"expression": "beta*i*s", | ||
"expression_mathml": "<apply><times/><ci>beta</ci><ci>i</ci><ci>s</ci></apply>" | ||
}, | ||
{ | ||
"target": "t2", | ||
"expression": "gamma*i", | ||
"expression_mathml": "<apply><times/><ci>gamma</ci><ci>i</ci></apply>" | ||
}, | ||
{ | ||
"target": "t3", | ||
"expression": "b*eta", | ||
"expression_mathml": "<apply><times/><ci>b</ci><ci>eta</ci></apply>" | ||
} | ||
], | ||
"initials": [ | ||
{ | ||
"target": "s", | ||
"expression": "0.999", | ||
"expression_mathml": "<cn>0.999</cn>" | ||
}, | ||
{ | ||
"target": "i", | ||
"expression": "0.001", | ||
"expression_mathml": "<cn>0.001</cn>" | ||
}, | ||
{ | ||
"target": "b", | ||
"expression": "0.0", | ||
"expression_mathml": "<cn>0.0</cn>" | ||
}, | ||
{ | ||
"target": "r", | ||
"expression": "0.0", | ||
"expression_mathml": "<cn>0.0</cn>" | ||
} | ||
], | ||
"parameters": [ | ||
{ | ||
"id": "beta", | ||
"value": 0.357, | ||
"units": { | ||
"expression": "1/day", | ||
"expression_mathml": "<apply><power/><ci>day</ci><cn>-1</cn></apply>" | ||
} | ||
}, | ||
{ | ||
"id": "gamma", | ||
"value": 0.143, | ||
"units": { | ||
"expression": "1/day", | ||
"expression_mathml": "<apply><power/><ci>day</ci><cn>-1</cn></apply>" | ||
} | ||
}, | ||
{ | ||
"id": "eta", | ||
"value": 0.429, | ||
"units": { | ||
"expression": "1/day", | ||
"expression_mathml": "<apply><power/><ci>day</ci><cn>-1</cn></apply>" | ||
} | ||
} | ||
], | ||
"observables": [], | ||
"time": { | ||
"id": "t" | ||
} | ||
} | ||
}, | ||
"metadata": { | ||
"annotations": {} | ||
} | ||
} |