File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,14 @@ using Statistics: mean
28
28
@test θ == t. z. θ
29
29
new_state = AbstractMCMC. setparams!! (model, s, θ)
30
30
@test new_state. transition. z. θ == θ
31
- @test new_state. transition. z. ℓπ == s. transition. z. ℓπ
32
- @test new_state. transition. z. ℓκ == s. transition. z. ℓκ
31
+ new_state_logπ = new_state. transition. z. ℓπ
32
+ @test new_state_logπ. value == s. transition. z. ℓπ. value
33
+ @test new_state_logπ. gradient == s. transition. z. ℓπ. gradient
34
+ new_state_logκ = new_state. transition. z. ℓκ
35
+ @test new_state_logκ. value == s. transition. z. ℓκ. value
36
+ @test new_state_logκ. gradient == s. transition. z. ℓκ. gradient
33
37
@test new_state. transition. z. r == s. transition. z. r
34
-
38
+
35
39
new_θ = randn (rng, 2 )
36
40
new_state = AbstractMCMC. setparams!! (model, s, new_θ)
37
41
@test AbstractMCMC. getparams (new_state) == new_θ
You can’t perform that action at this time.
0 commit comments