Skip to content

Commit

Permalink
fix method ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Oct 31, 2024
1 parent 480dedc commit faf5bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abstractmcmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function AbstractMCMC.getparams(state::HMCState)
return state.transition.z.θ
end

function AbstractMCMC.setparams!!(model, state::HMCState, params)
function AbstractMCMC.setparams!!(model::AbstractMCMC.LogDensityModel, 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.ℓκ,
ℓκ=state.transition.z.ℓκ,
)
end

Expand Down

0 comments on commit faf5bb0

Please sign in to comment.