Skip to content

Commit c05c94e

Browse files
changed laplace approx to return MvNormal
1 parent 862e52d commit c05c94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc_extras/inference/laplace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_conditional_gaussian_approximation(
149149

150150
# Currently x is passed both as the query point for f(x, args) = logp(x | y, params) AND as an initial guess for x0. This may cause issues if the query point is
151151
# far from the mode x0 or in a neighbourhood which results in poor convergence.
152-
return pytensor.function(args, [x0, conditional_gaussian_approx])
152+
return pytensor.function(args, pm.MvNormal(mu=x0, tau=Q-hess))
153153

154154

155155
def laplace_draws_to_inferencedata(

0 commit comments

Comments
 (0)