Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
PoorvaGarg committed Aug 27, 2024
1 parent 5f19b3f commit 0522d5e
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions docs/source/explainable_sir.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 76,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -130,7 +130,7 @@
},
{
"cell_type": "code",
"execution_count": 77,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -170,7 +170,7 @@
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -237,7 +237,7 @@
},
{
"cell_type": "code",
"execution_count": 79,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -279,7 +279,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -303,7 +303,7 @@
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -384,7 +384,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -431,7 +431,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -589,7 +589,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -651,7 +651,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -697,7 +697,7 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -709,8 +709,8 @@
" mask_intervened &= trace.nodes[i][\"value\"] == v\n",
"\n",
" with mwc_imp:\n",
" mask_os_too_high = (gather(trace.nodes[\"mask\"][\"value\"], IndexSet(**{\"mask\": {0}, \"lockdown\": {0}})) == 1) & (gather(trace.nodes[\"lockdown\"][\"value\"], IndexSet(**{\"mask\": {0}, \"lockdown\": {0}})) == 1)\n",
" mask_intervened &= mask_os_too_high\n",
" mask_tensor = (gather(trace.nodes[\"mask\"][\"value\"], IndexSet(**{\"mask\": {0}, \"lockdown\": {0}})) == 1) & (gather(trace.nodes[\"lockdown\"][\"value\"], IndexSet(**{\"mask\": {0}, \"lockdown\": {0}})) == 1)\n",
" mask_intervened &= mask_tensor\n",
"\n",
" print(\n",
" mask,\n",
Expand All @@ -723,7 +723,7 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -785,7 +785,7 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -834,7 +834,7 @@
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -876,7 +876,7 @@
},
{
"cell_type": "code",
"execution_count": 90,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -907,7 +907,7 @@
},
{
"cell_type": "code",
"execution_count": 91,
"execution_count": 16,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -992,7 +992,7 @@
},
{
"cell_type": "code",
"execution_count": 92,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1023,7 +1023,7 @@
},
{
"cell_type": "code",
"execution_count": 93,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1108,7 +1108,7 @@
},
{
"cell_type": "code",
"execution_count": 94,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1201,7 +1201,7 @@
},
{
"cell_type": "code",
"execution_count": 95,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1233,7 +1233,7 @@
},
{
"cell_type": "code",
"execution_count": 96,
"execution_count": 21,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1306,7 +1306,7 @@
},
{
"cell_type": "code",
"execution_count": 97,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -1336,7 +1336,7 @@
},
{
"cell_type": "code",
"execution_count": 98,
"execution_count": 23,
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 0522d5e

Please sign in to comment.