File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ include("../src/riemannian_hmc.jl")
11
11
include (" relativistic_hmc.jl" )
12
12
include (" riemannian_hmc.jl" )
13
13
14
- @main function runtests (patterns... ; dry:: Bool = false )
14
+ Comonicon . @main function runtests (patterns... ; dry:: Bool = false )
15
15
retest (patterns... ; dry = dry, verbose = Inf )
16
16
end
Original file line number Diff line number Diff line change @@ -35,8 +35,12 @@ function AbstractMCMC.getparams(state::HMCState)
35
35
return state. transition. z. θ
36
36
end
37
37
38
- function AbstractMCMC. setparams!! (state:: HMCState , θ)
39
- return @set state. transition. z. θ = θ
38
+ function AbstractMCMC. setparams!! (state:: HMCState , params)
39
+ hamiltonian = AdvancedHMC. Hamiltonian (state. metric, model)
40
+ return Setfield. @set state. transition. z = AdvancedHMC. phasepoint (
41
+ hamiltonian, params, state. transition. z. r;
42
+ ℓκ= state. transition. z. ℓκ
43
+ )
40
44
end
41
45
42
46
"""
You can’t perform that action at this time.
0 commit comments