Skip to content

Commit 01c8f98

Browse files
committed
Import constants
1 parent e8b6d5a commit 01c8f98

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

pymc_extras/statespace/core/statespace.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,33 @@
1616
from pytensor import Variable, graph_replace
1717
from pytensor.compile import get_mode
1818

19+
from pymc_extras.statespace.core.filters import KalmanSmoother
1920
from pymc_extras.statespace.core.representation import PytensorRepresentation
21+
from pymc_extras.statespace.distributions.normal import MvNormalSVD
22+
from pymc_extras.statespace.distributions.sequence import SequenceMvNormal
2023
from pymc_extras.statespace.filters import (
2124
CholeskyFilter,
22-
SingleTimeseriesFilter,
2325
StandardFilter,
2426
SteadyStateFilter,
2527
UnivariateFilter,
2628
)
2729
from pymc_extras.statespace.filters.distributions import (
2830
LinearGaussianStateSpace,
29-
LinearGaussianStateSpaceRV,
3031
)
3132
from pymc_extras.statespace.filters.utilities import stabilize
3233
from pymc_extras.statespace.utils.constants import (
34+
ALL_STATE_AUX_DIM,
35+
ALL_STATE_DIM,
36+
FILTER_OUTPUT_DIMS,
37+
FILTER_OUTPUT_TYPES,
3338
JITTER_DEFAULT,
3439
LONG_MATRIX_NAMES,
35-
MISSING_FILL,
40+
MATRIX_DIMS,
41+
OBS_STATE_DIM,
42+
SHOCK_DIM,
3643
SHORT_NAME_TO_LONG,
44+
TIME_DIM,
45+
VECTOR_VALUED,
3746
)
3847
from pymc_extras.statespace.utils.data_tools import register_data_with_pymc
3948

@@ -2033,7 +2042,10 @@ def forecast(
20332042
}
20342043

20352044
matrices = graph_replace(matrices, replace=sub_dict, strict=True)
2036-
[setattr(matrix, "name", name) for name, matrix in zip(LONG_MATRIX_NAMES[2:], matrices)]
2045+
[
2046+
setattr(matrix, "name", name)
2047+
for name, matrix in zip(LONG_MATRIX_NAMES[2:], matrices)
2048+
]
20372049

20382050
_ = LinearGaussianStateSpace(
20392051
"forecast",

0 commit comments

Comments
 (0)