Skip to content

Commit a952752

Browse files
committed
rerun notebook with git conficts
1 parent 2aaddde commit a952752

File tree

6 files changed

+48
-1338
lines changed

6 files changed

+48
-1338
lines changed

examples/variational_inference/GLM-hierarchical-advi-minibatch.ipynb

Lines changed: 37 additions & 32 deletions
Large diffs are not rendered by default.

myst_nbs/variational_inference/GLM-hierarchical-advi-minibatch.myst.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
jupytext:
3+
notebook_metadata_filter: substitutions
34
text_representation:
45
extension: .md
56
format_name: myst
67
format_version: 0.13
78
jupytext_version: 1.13.7
89
kernelspec:
9-
display_name: pymc
10+
display_name: Python 3 (ipykernel)
1011
language: python
11-
name: pymc
12+
name: python3
1213
---
1314

1415
# GLM: Mini-batch ADVI on hierarchical regression model
@@ -178,5 +179,9 @@ az.plot_density(
178179

179180
```{code-cell} ipython3
180181
%load_ext watermark
181-
%watermark -n -u -v -iv -w -p xarray
182+
%watermark -n -u -v -iv -w -p aeppl,xarray
183+
```
184+
185+
```{code-cell} ipython3
186+
182187
```

myst_nbs/variational_inference/bayesian_neural_network_advi.myst.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ jupyter:
249249
outputs_hidden: true
250250
---
251251
with neural_network:
252-
pm.set_data(new_data={"ann_input": grid_2d, "ann_output": dummy_out})
253-
ppc = pm.sample_posterior_predictive(trace)
252+
pm.set_data({"ann_input": grid_2d, "ann_output": dummy_out})
253+
pm.sample_posterior_predictive(trace, extend_inferencedata=True)
254254
```
255255

256256
```{code-cell} ipython3
257-
y_pred = ppc.posterior_predictive["out"]
257+
y_pred = trace.posterior_predictive["out"]
258258
```
259259

260260
### Probability surface

0 commit comments

Comments
 (0)