|
13 | 13 | # limitations under the License. |
14 | 14 | """Custom PyMC models for causal inference""" |
15 | 15 |
|
| 16 | +import warnings |
16 | 17 | from typing import Any, Dict, List, Optional |
17 | 18 |
|
18 | 19 | import arviz as az |
@@ -1103,6 +1104,15 @@ def __init__( |
1103 | 1104 | ): |
1104 | 1105 | super().__init__(sample_kwargs=sample_kwargs) |
1105 | 1106 |
|
| 1107 | + # Warn that this is experimental |
| 1108 | + warnings.warn( |
| 1109 | + "BayesianBasisExpansionTimeSeries is experimental and its API may change in future versions. " |
| 1110 | + "It uses a different data format (numpy arrays and datetime indices) compared to other PyMC models. " |
| 1111 | + "Not recommended for production use.", |
| 1112 | + FutureWarning, |
| 1113 | + stacklevel=2, |
| 1114 | + ) |
| 1115 | + |
1106 | 1116 | # Store original configuration parameters |
1107 | 1117 | self.n_order = n_order |
1108 | 1118 | self.n_changepoints_trend = n_changepoints_trend |
@@ -1613,6 +1623,17 @@ def __init__( |
1613 | 1623 | mode: str = "JAX", |
1614 | 1624 | ): |
1615 | 1625 | super().__init__(sample_kwargs=sample_kwargs) |
| 1626 | + |
| 1627 | + # Warn that this is experimental |
| 1628 | + warnings.warn( |
| 1629 | + "StateSpaceTimeSeries is experimental and its API may change in future versions. " |
| 1630 | + "It uses a different data format (numpy arrays and datetime indices) compared to other PyMC models, " |
| 1631 | + "and returns xr.Dataset instead of az.InferenceData from predict(). " |
| 1632 | + "Not recommended for production use.", |
| 1633 | + FutureWarning, |
| 1634 | + stacklevel=2, |
| 1635 | + ) |
| 1636 | + |
1616 | 1637 | self._custom_trend_component = trend_component |
1617 | 1638 | self._custom_seasonality_component = seasonality_component |
1618 | 1639 | self.level_order = level_order |
|
0 commit comments