Skip to content

Commit 6c305ff

Browse files
committed
add tests for stereographic slice sampling
1 parent 0581a04 commit 6c305ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/multivariate.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ end
7474
HitAndRun(SliceSteppingOut(1)),
7575
HitAndRun(SliceDoublingOut(1)),
7676

77-
# Latent slice sampling
7877
LatentSlice(5),
79-
80-
# Gibbsian polar slice sampling
8178
GibbsPolarSlice(100),
79+
StereographicSlice(),
8280
]
8381
@testset "initial_params" begin
8482
model = MultiModel(1.0, 1.0, [0.0])

test/turing.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
s ~ InverseGamma(2, 3)
55
m ~ Normal(0, sqrt(s))
66
1.5 ~ Normal(m, sqrt(s))
7-
return 2.0 ~ Normal(m, sqrt(s))
7+
2.0 ~ Normal(m, sqrt(s))
8+
return nothing
89
end
910

1011
n_samples = 1000
@@ -19,6 +20,7 @@
1920
HitAndRun(SliceDoublingOut(1)),
2021
LatentSlice(5),
2122
GibbsPolarSlice(5),
23+
StereographicSlice(),
2224
]
2325
chain = sample(
2426
model,

0 commit comments

Comments
 (0)