Skip to content

Commit 8ed64fd

Browse files
added warning (INLA experimental)
1 parent e367958 commit 8ed64fd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pymc_extras/inference/INLA/inla.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import warnings
2+
13
import arviz as az
24
import pymc as pm
35

@@ -83,6 +85,10 @@ def fit_INLA(
8385
[3.48732847 0.35738072 1.46851421]
8486
8587
"""
88+
warnings.warn(
89+
"INLA is currently experimental. Please see the INLA Roadmap for more info: https://github.com/pymc-devs/pymc-extras/issues/340.",
90+
UserWarning,
91+
)
8692
model = pm.modelcontext(model)
8793

8894
# Get the TensorVariable if Q is provided as an RV

tests/inference/INLA/test_inla.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def rng():
2626
return np.random.default_rng(seed)
2727

2828

29+
@pytest.mark.filterwarnings(r"ignore:INLA is currently experimental")
2930
def test_3_layer_normal(rng):
3031
"""
3132
Test INLA against a simple toy problem:

0 commit comments

Comments
 (0)