Skip to content

Commit c3fdc57

Browse files
committed
Add Arviz to 04-instructor
1 parent a18422f commit c3fdc57

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

notebooks/04-instructor-multi-group-comparsion-sterilization.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"from sklearn.preprocessing import LabelEncoder\n",
1515
"import theano.tensor as tt\n",
1616
"from utils import ECDF\n",
17+
"import arviz as az\n",
1718
"\n",
1819
"%load_ext autoreload\n",
1920
"%autoreload 2\n",
@@ -224,7 +225,7 @@
224225
"outputs": [],
225226
"source": [
226227
"# Plot the trace plots.\n",
227-
"pm.traceplot(trace)"
228+
"az.traceplot(trace)"
228229
]
229230
},
230231
{
@@ -241,7 +242,7 @@
241242
"outputs": [],
242243
"source": [
243244
"# Use the `forestplot` or `plot_posterior` functions.\n",
244-
"pm.forestplot(trace, varnames=['perc_reduction'], ylabels=sorted(mapping))"
245+
"az.forestplot(trace, var_names=['perc_reduction'], ylabels=sorted(mapping))"
245246
]
246247
},
247248
{
@@ -274,9 +275,9 @@
274275
],
275276
"metadata": {
276277
"kernelspec": {
277-
"display_name": "bayesian-modelling-tutorial",
278+
"display_name": "Python 3",
278279
"language": "python",
279-
"name": "bayesian-modelling-tutorial"
280+
"name": "python3"
280281
},
281282
"language_info": {
282283
"codemirror_mode": {
@@ -288,7 +289,7 @@
288289
"name": "python",
289290
"nbconvert_exporter": "python",
290291
"pygments_lexer": "ipython3",
291-
"version": "3.6.6"
292+
"version": "3.6.8"
292293
}
293294
},
294295
"nbformat": 4,

0 commit comments

Comments
 (0)