We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5619cc4 commit 715aefaCopy full SHA for 715aefa
src/abstractmcmc.jl
@@ -292,7 +292,7 @@ function AbstractMCMC.step(
292
logdensity_and_gradient = Base.Fix1(
293
LogDensityProblems.logdensity_and_gradient, model.logdensity
294
)
295
- θ = t_old.z.θ
+ θ = copy(t_old.z.θ)
296
grad = last(logdensity_and_gradient(θ))
297
298
# Update latent variables and velocity according to
@@ -304,7 +304,8 @@ function AbstractMCMC.step(
304
θ .+= newv
305
306
# Make new transition.
307
- t = transition(rng, h, κ, t_old.z)
+ z = phasepoint(h, θ, v)
308
+ t = transition(rng, h, κ, z)
309
310
# Adapt h and spl.
311
tstat = stat(t)
0 commit comments