Skip to content

Commit d8b4a68

Browse files
authored
Merge pull request #37 from canyon289/05_instructor
Add ArviZ to 05 instructor
2 parents 728f2e9 + 7363677 commit d8b4a68

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

notebooks/05-instructor-two-group-comparison-finches.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"import seaborn as sns\n",
1414
"import numpy as np\n",
1515
"from utils import ECDF\n",
16+
"import arviz as az\n",
1617
"\n",
1718
"%load_ext autoreload\n",
1819
"%autoreload 2\n",
@@ -161,7 +162,7 @@
161162
"metadata": {},
162163
"outputs": [],
163164
"source": [
164-
"traces = pm.traceplot(trace)"
165+
"traces = az.plot_trace(trace)"
165166
]
166167
},
167168
{
@@ -177,7 +178,7 @@
177178
"metadata": {},
178179
"outputs": [],
179180
"source": [
180-
"pm.forestplot(trace, varnames=['mean'])"
181+
"az.plot_forest(trace, var_names=['mean'])"
181182
]
182183
},
183184
{
@@ -294,9 +295,9 @@
294295
],
295296
"metadata": {
296297
"kernelspec": {
297-
"display_name": "bayesian-modelling-tutorial",
298+
"display_name": "Python 3",
298299
"language": "python",
299-
"name": "bayesian-modelling-tutorial"
300+
"name": "python3"
300301
},
301302
"language_info": {
302303
"codemirror_mode": {
@@ -308,7 +309,7 @@
308309
"name": "python",
309310
"nbconvert_exporter": "python",
310311
"pygments_lexer": "ipython3",
311-
"version": "3.6.6"
312+
"version": "3.6.8"
312313
}
313314
},
314315
"nbformat": 4,

0 commit comments

Comments
 (0)