Skip to content

Commit 0eee665

Browse files
JaimeRZPyebaigithub-actions[bot]
authored
Fix Step (#359)
* fix step * Update src/abstractmcmc.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Hong Ge <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2b3814c commit 0eee665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstractmcmc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function AbstractMCMC.step(
141141
model::AbstractMCMC.LogDensityModel,
142142
spl::AbstractHMCSampler,
143143
state::HMCState;
144+
n_adapts::Int = 0,
144145
kwargs...,
145146
)
146147
# Compute transition.
@@ -158,7 +159,6 @@ function AbstractMCMC.step(
158159

159160
# Adapt h and spl.
160161
tstat = stat(t)
161-
n_adapts = kwargs[:n_adapts]
162162
h, κ, isadapted = adapt!(h, κ, adaptor, i, n_adapts, t.z.θ, tstat.acceptance_rate)
163163
tstat = merge(tstat, (is_adapt = isadapted,))
164164

0 commit comments

Comments
 (0)