We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134d5c9 commit 8433ff6Copy full SHA for 8433ff6
pymc_extras/inference/inla.py
@@ -157,7 +157,7 @@ def fit_INLA(
157
_, _, _, tau = x.owner.inputs
158
159
# Latent field should use precison rather than covariance
160
- if not tau.owner or tau.owner.op != matrix_inverse:
+ if not (tau.owner and tau.owner.op == matrix_inverse):
161
raise ValueError(
162
f"Latent field {x} is not in precision matrix form. Use MvNormal(tau=Q) instead."
163
)
0 commit comments