Skip to content

Commit f257ca9

Browse files
committed
Remove dead code
1 parent 6aeb4d7 commit f257ca9

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/transform.jl

-20
Original file line numberDiff line numberDiff line change
@@ -157,26 +157,6 @@ end
157157
for dist in vector_dists
158158
if dist isa Dirichlet
159159
single_sample_tests(dist)
160-
161-
# This should fail at the minute. Not sure what the correct way to test this is.
162-
163-
# Workaround for intermittent test failures, result of `logpdf_with_trans(dist, x, true)`
164-
# is incorrect for `x == [0.9999999999999998, 0.0]`:
165-
x =
166-
if params(dist) ==
167-
params(Dirichlet([1000 * one(Float64), eps(Float64)]))
168-
[1.0, 0.0]
169-
else
170-
rand(dist)
171-
end
172-
# `Dirichlet` is no longer mapping between spaces of the same dimensionality,
173-
# so the block below no longer works.
174-
if !(dist isa Dirichlet)
175-
logpdf_turing = logpdf_with_trans(dist, x, true)
176-
J = ForwardDiff.jacobian(x -> link(dist, x), x)
177-
@test logpdf(dist, x .+ ϵ) - _logabsdet(J) logpdf_turing
178-
end
179-
180160
# Issue #12
181161
stepsize = 1e10
182162
dim = Bijectors.output_length(bijector(dist), length(dist))

0 commit comments

Comments
 (0)