Skip to content

Commit 3fdd101

Browse files
Set compute_covariance to False by default
1 parent a845475 commit 3fdd101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc_extras/inference/laplace_approx/find_map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def find_MAP(
198198
include_transformed: bool = True,
199199
gradient_backend: GradientBackend = "pytensor",
200200
compile_kwargs: dict | None = None,
201-
compute_covariance: bool = True,
201+
compute_covariance: bool = False,
202202
**optimizer_kwargs,
203203
) -> (
204204
dict[str, np.ndarray]
@@ -243,7 +243,7 @@ def find_MAP(
243243
compute_covariance: bool
244244
If True, the inverse Hessian matrix at the optimum will be computed and included in the returned
245245
InferenceData object. This is needed for the Laplace approximation, but can be computationally expensive for
246-
high-dimensional problems. Defaults to True.
246+
high-dimensional problems. Defaults to False.
247247
compile_kwargs: dict, optional
248248
Additional options to pass to the ``pytensor.function`` function when compiling loss functions.
249249
**optimizer_kwargs

0 commit comments

Comments
 (0)