We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bijectors.jl/test/interface.jl
Lines 445 to 449 in 6f05a87
causes issues because
julia> using Bijectors, ForwardDiff julia> b = Bijectors.SimplexBijector{false}(); julia> x = [1.0, 0.0]; julia> logabsdetjac(b, x) 36.04365338911715 julia> log(abs(det(ForwardDiff.jacobian(b, x)))) # (✓) Same! 36.04365338911715 julia> x = [0.9999999999999999, 0.0]; julia> logabsdetjac(b, x) 36.04365338911715 julia> log(abs(det(ForwardDiff.jacobian(b, x)))) # (×) Different 35.63818828100899
And [0.9999999999999999, 0.0] is indeed a possible realization from Dirichlet even though it's technically not in the support:
[0.9999999999999999, 0.0]
Dirichlet
julia> using StableRNGs julia> dist = Dirichlet([1000 * one(Float64), eps(Float64)]); julia> rand(StableRNG(2), dist) 2-element Vector{Float64}: 0.9999999999999999 0.0 julia> insupport(dist, [0.9999999999999999, 0.0]) true
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bijectors.jl/test/interface.jl
Lines 445 to 449 in 6f05a87
causes issues because
And
[0.9999999999999999, 0.0]
is indeed a possible realization fromDirichlet
even though it's technically not in the support:The text was updated successfully, but these errors were encountered: