Skip to content

Commit f3cfdf1

Browse files
committed
Is it just sample()?
1 parent 013fc10 commit f3cfdf1

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/sampler.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@
3636
@testset "$(model.f)" for model in DynamicPPL.TestUtils.DEMO_MODELS
3737
N = 1000
3838
chain_init = sample(model, SampleFromUniform(), N; progress=false)
39-
40-
for vn in keys(first(chain_init))
41-
if AbstractPPL.subsumes(@varname(s), vn)
42-
# `s ~ InverseGamma(2, 3)` and its unconstrained value will be sampled from Unif[-2,2].
43-
dist = InverseGamma(2, 3)
44-
b = DynamicPPL.link_transform(dist)
45-
@test mean(mean(b(vi[vn])) for vi in chain_init) 0 atol = 0.11
46-
elseif AbstractPPL.subsumes(@varname(m), vn)
47-
# `m ~ Normal(0, sqrt(s))` and its constrained value is the same.
48-
@test mean(mean(vi[vn]) for vi in chain_init) 0 atol = 0.11
49-
else
50-
error("Unknown variable name: $vn")
51-
end
52-
end
5339
end
5440
end
5541

0 commit comments

Comments
 (0)