Skip to content

Commit c47d68c

Browse files
authored
Merge pull request #35 from canyon289/04_instructor
Add ArviZ to 04-instructor
2 parents 69bee1b + e93ee0a commit c47d68c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 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.plot_trace(trace)"
228229
]
229230
},
230231
{
@@ -240,8 +241,8 @@
240241
"metadata": {},
241242
"outputs": [],
242243
"source": [
243-
"# Use the `forestplot` or `plot_posterior` functions.\n",
244-
"pm.forestplot(trace, varnames=['perc_reduction'], ylabels=sorted(mapping))"
244+
"# Use the `plot_forest` or `plot_posterior` functions.\n",
245+
"az.plot_forest(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)