Skip to content

Commit babcab2

Browse files
committed
Fix first computational graph and sleep study file url for wget.
1 parent ba8887e commit babcab2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

15_hierarchical_modelling.ipynb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@
5757
"The sampling order in this example follows the computational graph: \n",
5858
"\n",
5959
"$$\n",
60-
"b \\to a \\to \\theta \\to y.\n",
61-
"$$"
60+
"\\begin{array}{c}\n",
61+
"b\\\\ \\downarrow\\\\ a\\\\ \\downarrow\\\\ \\theta\\\\ \\downarrow\\\\ y\n",
62+
"\\end{array}\n",
63+
"$$\n"
6264
]
6365
},
6466
{
@@ -381,7 +383,7 @@
381383
},
382384
{
383385
"cell_type": "code",
384-
"execution_count": 11,
386+
"execution_count": null,
385387
"metadata": {},
386388
"outputs": [
387389
{
@@ -460,11 +462,15 @@
460462
}
461463
],
462464
"source": [
463-
"df = pd.read_csv('data/sleepstudy.csv')\n",
465+
"# To get the file using wget\n",
466+
"# !wget -O sleepstudy.csv https://raw.githubusercontent.com/elizavetasemenova/prob-epi/main/data/sleepstudy.csv\n",
467+
"# df = pd.read_csv('sleepstudy.csv')\n",
468+
"# Drop the colum\n",
469+
"# df = df.drop('Unnamed: 0', axis=1)\n",
470+
"# df.head()\n",
464471
"\n",
465-
"#!wget -O sleepstudy.csv https://github.com/elizavetasemenova/prob-epi/blob/main/data/sleepstudy.csv\n",
466-
"#df = pd.read_csv('sleepstudy.csv', sep=\";\")\n",
467472
"\n",
473+
"df = pd.read_csv('data/sleepstudy.csv')\n",
468474
"# Drop the column\n",
469475
"df = df.drop('Unnamed: 0', axis=1)\n",
470476
"df.head()"

0 commit comments

Comments
 (0)