File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ import warnings
2+
13import arviz as az
24import numpy as np
35import pymc as pm
@@ -146,6 +148,8 @@ def fit_INLA(
146148 return_latent_posteriors : bool = True ,
147149 ** sampler_kwargs ,
148150) -> az .InferenceData :
151+ warnings .warn ("Currently only valid for a nested normal model. WIP." , UserWarning )
152+
149153 model = pm .modelcontext (model )
150154
151155 # Check if latent field is Gaussian
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def rng():
2626 return np .random .default_rng (seed )
2727
2828
29+ @pytest .mark .filterwarnings ("ignore:Currently only valid for a nested normal model. WIP." )
2930def test_non_gaussian_latent (rng ):
3031 """
3132 INLA should raise an error if trying to use a non-Gaussian latent
@@ -45,6 +46,7 @@ def test_non_gaussian_latent(rng):
4546 pmx .fit (method = "INLA" , x = x )
4647
4748
49+ @pytest .mark .filterwarnings ("ignore:Currently only valid for a nested normal model. WIP." )
4850def test_non_precision_MvNormal (rng ):
4951 """
5052 INLA should raise an error if trying to use a latent not in precision form
@@ -67,6 +69,7 @@ def test_non_precision_MvNormal(rng):
6769 pmx .fit (method = "INLA" , x = x )
6870
6971
72+ @pytest .mark .filterwarnings ("ignore:Currently only valid for a nested normal model. WIP." )
7073def test_3_layer_normal (rng ):
7174 """
7275 Test INLA against a simple toy problem:
You can’t perform that action at this time.
0 commit comments