Skip to content

Commit 9e92870

Browse files
committed
test setting figure by cell metadata
1 parent facf167 commit 9e92870

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lectures/bayes_nonconj.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,9 +768,20 @@ Now let's use MCMC while still using a beta prior.
768768
We'll do this for both MCMC and VI.
769769
770770
```{code-cell} ipython3
771+
---
772+
mystnb:
773+
figure:
774+
caption: |
775+
MCMC sampling density of posterior distributions
776+
name: mcmc
777+
---
778+
771779
BayesianInferencePlot(true_theta, num_list, BETA).MCMC_plot(
772780
num_samples=MCMC_num_samples
773781
)
782+
```
783+
784+
```{code-cell} ipython3
774785
BayesianInferencePlot(true_theta, num_list, BETA).SVI_plot(
775786
guide_dist="beta", n_steps=SVI_num_steps
776787
)

0 commit comments

Comments
 (0)