Skip to content

Commit da61a32

Browse files
committed
fix examples following NestedModel rewrite
1 parent 4d33e0f commit da61a32

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/src/examples/correlated.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ using StatsPlots
3434
3535
θ1 = range(-1, 1, length=1000)
3636
θ2 = range(-1, 1, length=1000)
37-
logf = [model.loglike([t1, t2, 0, 0]) for t2 in θ2, t1 in θ1]
37+
loglike = model.prior_transform_and_loglikelihood.loglikelihood
38+
logf = [loglike([t1, t2, 0, 0]) for t2 in θ2, t1 in θ1]
3839
heatmap(
3940
θ1, θ2, exp.(logf),
4041
aspect_ratio=1,

docs/src/examples/eggbox.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ using StatsPlots
3232
3333
x = range(0, 1, length=1000)
3434
y = range(0, 1, length=1000)
35-
logf = [model.loglike([xi, yi]) for yi in y, xi in x]
35+
loglike = model.prior_transform_and_loglikelihood.loglikelihood
36+
logf = [loglike([xi, yi]) for yi in y, xi in x]
3637
heatmap(
3738
x, y, logf,
3839
xlims=extrema(x),

docs/src/examples/shells.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ using StatsPlots
3232
3333
x = range(-6, 6, length=1000)
3434
y = range(-2.5, 2.5, length=1000)
35-
logf = [model.loglike([xi, yi]) for yi in y, xi in x]
35+
loglike = model.prior_transform_and_loglikelihood.loglikelihood
36+
logf = [loglike([xi, yi]) for yi in y, xi in x]
3637
heatmap(
3738
x, y, exp.(logf),
3839
xlims=extrema(x),

0 commit comments

Comments
 (0)