Skip to content

Commit 377238d

Browse files
committed
Add ArviZ to bonus
1 parent a18422f commit 377238d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

notebooks/bonus-exploration-finches.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"import numpy as np\n",
1212
"from data import load_finches_2012, load_finches_1975\n",
1313
"from utils import ECDF\n",
14+
"import arviz as az\n",
1415
"\n",
1516
"%load_ext autoreload\n",
1617
"%autoreload 2\n",
@@ -124,7 +125,7 @@
124125
"metadata": {},
125126
"outputs": [],
126127
"source": [
127-
"pm.traceplot(trace, varnames=['mean_length', 'mean_depth'])"
128+
"az.plot_trace(trace, var_names=['mean_length', 'mean_depth'])"
128129
]
129130
},
130131
{
@@ -291,7 +292,7 @@
291292
"metadata": {},
292293
"outputs": [],
293294
"source": [
294-
"pm.traceplot(trace_mv)"
295+
"az.plot_trace(trace_mv)"
295296
]
296297
},
297298
{
@@ -300,7 +301,7 @@
300301
"metadata": {},
301302
"outputs": [],
302303
"source": [
303-
"pm.forestplot(trace_mv, varnames=['sigma'])"
304+
"az.plot_forest(trace_mv, var_names=['sigma'])"
304305
]
305306
},
306307
{
@@ -309,7 +310,7 @@
309310
"metadata": {},
310311
"outputs": [],
311312
"source": [
312-
"pm.forestplot(trace_mv, varnames=['mu'])"
313+
"az.plot_forest(trace_mv, varnames=['mu'])"
313314
]
314315
},
315316
{
@@ -492,9 +493,9 @@
492493
],
493494
"metadata": {
494495
"kernelspec": {
495-
"display_name": "bayesian-modelling-tutorial",
496+
"display_name": "Python 3",
496497
"language": "python",
497-
"name": "bayesian-modelling-tutorial"
498+
"name": "python3"
498499
},
499500
"language_info": {
500501
"codemirror_mode": {
@@ -506,7 +507,7 @@
506507
"name": "python",
507508
"nbconvert_exporter": "python",
508509
"pygments_lexer": "ipython3",
509-
"version": "3.6.6"
510+
"version": "3.6.8"
510511
}
511512
},
512513
"nbformat": 4,

0 commit comments

Comments
 (0)