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 3711a0c commit 027cd31Copy full SHA for 027cd31
test/abstractmcmc.jl
@@ -26,8 +26,12 @@ using Statistics: mean
26
27
θ = AbstractMCMC.getparams(s)
28
@test θ == t.z.θ
29
- @test AbstractMCMC.setparams!!(model, s, θ) == s
30
-
+ new_state = AbstractMCMC.setparams!!(model, s, θ)
+ @test new_state.transition.z.θ == θ
31
+ @test new_state.transition.z.ℓπ == s.transition.z.ℓπ
32
+ @test new_state.transition.z.ℓκ == s.transition.z.ℓκ
33
+ @test new_state.transition.z.r == s.transition.z.r
34
+
35
new_θ = randn(rng, 2)
36
new_state = AbstractMCMC.setparams!!(model, s, new_θ)
37
@test AbstractMCMC.getparams(new_state) == new_θ
0 commit comments