Skip to content

Commit b1976af

Browse files
committed
fix figure tag and caption
1 parent b996397 commit b1976af

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

lectures/bayes_nonconj.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ Let's start with the analytical method that we described in this {doc}`prob_mean
759759
mystnb:
760760
figure:
761761
caption: |
762-
Analytical Beta prior and posterior
762+
Analytical density (Beta prior)
763763
name: fig_analytical
764764
---
765765
# first examine Beta prior
@@ -801,7 +801,7 @@ We'll do this for both MCMC and VI.
801801
mystnb:
802802
figure:
803803
caption: |
804-
MCMC density with Beta prior
804+
MCMC density (Beta prior)
805805
name: fig_mcmc_beta
806806
---
807807
@@ -815,7 +815,7 @@ BayesianInferencePlot(true_theta, num_list, BETA).MCMC_plot(
815815
mystnb:
816816
figure:
817817
caption: |
818-
SVI density with Beta prior and Beta guide
818+
SVI density (Beta prior, Beta guide)
819819
name: fig_svi_beta_beta
820820
---
821821
@@ -877,8 +877,8 @@ LAPLACE = BayesianInference(param=(0.5, 0.07), name_dist="laplace")
877877
mystnb:
878878
figure:
879879
caption: |
880-
MCMC density with uniform prior
881-
name: fig_mcmc_uniform
880+
MCMC density (uniform prior)
881+
name: fig_mcmc_stduniform
882882
---
883883
# Uniform
884884
example_CLASS = STD_UNIFORM
@@ -888,7 +888,16 @@ print(
888888
BayesianInferencePlot(true_theta, num_list, example_CLASS).MCMC_plot(
889889
num_samples=MCMC_num_samples
890890
)
891+
```
891892
893+
```{code-cell} ipython3
894+
---
895+
mystnb:
896+
figure:
897+
caption: |
898+
MCMC density (uniform prior)
899+
name: fig_mcmc_uniform
900+
---
892901
example_CLASS = UNIFORM
893902
print(
894903
f"=======INFO=======\nParameters: {example_CLASS.param}\nPrior Dist: {example_CLASS.name_dist}"
@@ -909,7 +918,7 @@ Note how when the true data-generating $\theta$ is located at $0.8$ as it is her
909918
mystnb:
910919
figure:
911920
caption: |
912-
MCMC density with log normal prior
921+
MCMC density (log normal prior)
913922
name: fig_mcmc_lognormal
914923
---
915924
# log normal
@@ -927,7 +936,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).MCMC_plot(
927936
mystnb:
928937
figure:
929938
caption: |
930-
MCMC density with von Mises prior
939+
MCMC density (von Mises prior)
931940
name: fig_mcmc_vonmises
932941
---
933942
# von Mises
@@ -946,7 +955,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).MCMC_plot(
946955
mystnb:
947956
figure:
948957
caption: |
949-
MCMC density with Laplace prior
958+
MCMC density (Laplace prior)
950959
name: fig_mcmc_laplace
951960
---
952961
# Laplace
@@ -973,7 +982,7 @@ SVI_num_steps = 50000
973982
mystnb:
974983
figure:
975984
caption: |
976-
SVI density with uniform prior and normal guide
985+
SVI density (uniform prior, normal guide)
977986
name: fig_svi_uniform_normal
978987
---
979988
# Uniform
@@ -991,7 +1000,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).SVI_plot(
9911000
mystnb:
9921001
figure:
9931002
caption: |
994-
SVI density with log normal prior and normal guide
1003+
SVI density (log normal prior, normal guide)
9951004
name: fig_svi_lognormal_normal
9961005
---
9971006
# log normal
@@ -1009,7 +1018,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).SVI_plot(
10091018
mystnb:
10101019
figure:
10111020
caption: |
1012-
SVI density with Laplace prior and normal guide
1021+
SVI density (Laplace prior, normal guide)
10131022
name: fig_svi_laplace_normal
10141023
---
10151024
# Laplace
@@ -1029,7 +1038,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).SVI_plot(
10291038
mystnb:
10301039
figure:
10311040
caption: |
1032-
SVI density with uniform prior and Beta guide
1041+
SVI density (uniform prior, Beta guide)
10331042
name: fig_svi_uniform_beta
10341043
---
10351044
# uniform
@@ -1047,7 +1056,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).SVI_plot(
10471056
mystnb:
10481057
figure:
10491058
caption: |
1050-
SVI density with log normal prior and Beta guide
1059+
SVI density (log normal prior, Beta guide)
10511060
name: fig_svi_lognormal_beta
10521061
---
10531062
# log normal
@@ -1065,7 +1074,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).SVI_plot(
10651074
mystnb:
10661075
figure:
10671076
caption: |
1068-
SVI density with von Mises prior and Beta guide
1077+
SVI density (von Mises prior, Beta guide)
10691078
name: fig_svi_vonmises_beta
10701079
---
10711080
# von Mises
@@ -1084,7 +1093,7 @@ BayesianInferencePlot(true_theta, num_list, example_CLASS).SVI_plot(
10841093
mystnb:
10851094
figure:
10861095
caption: |
1087-
SVI density with Laplace prior and Beta guide
1096+
SVI density (Laplace prior, Beta guide)
10881097
name: fig_svi_laplace_beta
10891098
---
10901099
# Laplace

0 commit comments

Comments
 (0)