Skip to content

Commit fb39764

Browse files
refactor: TensorLike typehint
1 parent 47b8dae commit fb39764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc_extras/inference/INLA/inla.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import arviz as az
22
import pymc as pm
33

4-
from pytensor.tensor import TensorVariable
4+
from pytensor.tensor import TensorLike, TensorVariable
55

66
from pymc_extras.model.marginal.marginal_model import marginalize
77

88

99
def fit_INLA(
1010
x: TensorVariable,
11-
Q: TensorVariable,
11+
Q: TensorLike,
1212
minimizer_seed: int = 42,
1313
model: pm.Model | None = None,
1414
minimizer_kwargs: dict = {"method": "L-BFGS-B", "optimizer_kwargs": {"tol": 1e-8}},
@@ -34,7 +34,7 @@ def fit_INLA(
3434
----------
3535
x: TensorVariable
3636
The latent gaussian to marginalize out.
37-
Q: TensorVariable
37+
Q: TensorLike
3838
Precision matrix of the latent field.
3939
minimizer_seed: int
4040
Seed for random initialisation of the minimum point x*.

0 commit comments

Comments
 (0)