Skip to content

Commit 0c4fcd5

Browse files
refactor: default return_latent_posteriors to false
1 parent 2198465 commit 0c4fcd5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymc_extras/inference/INLA/inla.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def fit_INLA(
1212
minimizer_seed: int = 42,
1313
model: pm.Model | None = None,
1414
minimizer_kwargs: dict = {"method": "L-BFGS-B", "optimizer_kwargs": {"tol": 1e-8}},
15-
return_latent_posteriors: bool = True,
15+
return_latent_posteriors: bool = False,
1616
**sampler_kwargs,
1717
) -> az.InferenceData:
1818
"""
@@ -40,4 +40,6 @@ def fit_INLA(
4040
return idata
4141

4242
# Unmarginalize stuff
43-
raise NotImplementedError("Inference over the latent field with INLA is currently unsupported.")
43+
raise NotImplementedError(
44+
"Inference over the latent field with INLA is currently unsupported. Set return_latent_posteriors to False"
45+
)

0 commit comments

Comments
 (0)