Skip to content

Commit

Permalink
Merge pull request #11 from Fahazavana/main
Browse files Browse the repository at this point in the history
Fix first computational graph and sleep study file url for wget.
  • Loading branch information
elizavetasemenova authored Apr 6, 2024
2 parents 1439e46 + babcab2 commit ab746f4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions 15_hierarchical_modelling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@
"The sampling order in this example follows the computational graph: \n",
"\n",
"$$\n",
"b \\to a \\to \\theta \\to y.\n",
"$$"
"\\begin{array}{c}\n",
"b\\\\ \\downarrow\\\\ a\\\\ \\downarrow\\\\ \\theta\\\\ \\downarrow\\\\ y\n",
"\\end{array}\n",
"$$\n"
]
},
{
Expand Down Expand Up @@ -381,7 +383,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -460,11 +462,15 @@
}
],
"source": [
"df = pd.read_csv('data/sleepstudy.csv')\n",
"# To get the file using wget\n",
"# !wget -O sleepstudy.csv https://raw.githubusercontent.com/elizavetasemenova/prob-epi/main/data/sleepstudy.csv\n",
"# df = pd.read_csv('sleepstudy.csv')\n",
"# Drop the colum\n",
"# df = df.drop('Unnamed: 0', axis=1)\n",
"# df.head()\n",
"\n",
"#!wget -O sleepstudy.csv https://github.com/elizavetasemenova/prob-epi/blob/main/data/sleepstudy.csv\n",
"#df = pd.read_csv('sleepstudy.csv', sep=\";\")\n",
"\n",
"df = pd.read_csv('data/sleepstudy.csv')\n",
"# Drop the column\n",
"df = df.drop('Unnamed: 0', axis=1)\n",
"df.head()"
Expand Down

0 comments on commit ab746f4

Please sign in to comment.