File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import arviz as az
2
2
import pymc as pm
3
3
4
- from pytensor .tensor import TensorVariable
4
+ from pytensor .tensor import TensorLike , TensorVariable
5
5
6
6
from pymc_extras .model .marginal .marginal_model import marginalize
7
7
8
8
9
9
def fit_INLA (
10
10
x : TensorVariable ,
11
- Q : TensorVariable ,
11
+ Q : TensorLike ,
12
12
minimizer_seed : int = 42 ,
13
13
model : pm .Model | None = None ,
14
14
minimizer_kwargs : dict = {"method" : "L-BFGS-B" , "optimizer_kwargs" : {"tol" : 1e-8 }},
@@ -34,7 +34,7 @@ def fit_INLA(
34
34
----------
35
35
x: TensorVariable
36
36
The latent gaussian to marginalize out.
37
- Q: TensorVariable
37
+ Q: TensorLike
38
38
Precision matrix of the latent field.
39
39
minimizer_seed: int
40
40
Seed for random initialisation of the minimum point x*.
You can’t perform that action at this time.
0 commit comments