Skip to content

Commit cf647b1

Browse files
authored
Add accepted arg to AdvancedMH.Transition calls (#2172)
* add `accepted` field * remove unintentional push
1 parent 93d3114 commit cf647b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mcmc/emcee.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function AbstractMCMC.step(
5858
vis[1],
5959
map(vis) do vi
6060
vi = DynamicPPL.link!!(vi, spl, model)
61-
AMH.Transition(vi[spl], getlogp(vi))
61+
AMH.Transition(vi[spl], getlogp(vi), false)
6262
end
6363
)
6464

src/mcmc/mh.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ function propose!!(
386386

387387
# Create a sampler and the previous transition.
388388
mh_sampler = AMH.MetropolisHastings(dt)
389-
prev_trans = AMH.Transition(vt, getlogp(vi))
389+
prev_trans = AMH.Transition(vt, getlogp(vi), false)
390390

391391
# Make a new transition.
392392
densitymodel = AMH.DensityModel(
@@ -421,7 +421,7 @@ function propose!!(
421421

422422
# Create a sampler and the previous transition.
423423
mh_sampler = AMH.MetropolisHastings(spl.alg.proposals)
424-
prev_trans = AMH.Transition(vals, getlogp(vi))
424+
prev_trans = AMH.Transition(vals, getlogp(vi), false)
425425

426426
# Make a new transition.
427427
densitymodel = AMH.DensityModel(

0 commit comments

Comments
 (0)