Skip to content

Commit

Permalink
fixed ForwardDiff tests for LKJCholesky
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Aug 12, 2023
1 parent 51693bb commit 182d868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ end
upperinds = [
LinearIndices(size(x))[I] for I in CartesianIndices(size(x)) if I[2] > I[1]
]
J = ForwardDiff.jacobian(x -> link(dist, x), x.U)
J = ForwardDiff.jacobian(x -> link(dist, x), x.UL)
J = J[:, upperinds]
logpdf_turing = logpdf_with_trans(dist, x, true)
@test logpdf(dist, x) - _logabsdet(J) logpdf_turing
Expand Down

0 comments on commit 182d868

Please sign in to comment.