Skip to content

Commit

Permalink
Update src/abstractmcmc.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sunxd3 and github-actions[bot] authored Oct 28, 2024
1 parent 3b05769 commit 480dedc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/abstractmcmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ end
function AbstractMCMC.setparams!!(model, state::HMCState, params)
hamiltonian = AdvancedHMC.Hamiltonian(state.metric, model)
return Setfield.@set state.transition.z = AdvancedHMC.phasepoint(
hamiltonian, params, state.transition.z.r;
ℓκ=state.transition.z.ℓκ
hamiltonian,
params,
state.transition.z.r;
ℓκ = state.transition.z.ℓκ,
)
end

Expand Down

0 comments on commit 480dedc

Please sign in to comment.