Skip to content

Commit 21256ad

Browse files
committed
updated notebook removing exogenous forecasts hack
1 parent f5816c7 commit 21256ad

File tree

2 files changed

+121
-135
lines changed

2 files changed

+121
-135
lines changed

examples/case_studies/ssm_hurricane_tracking.ipynb

Lines changed: 120 additions & 127 deletions
Large diffs are not rendered by default.

examples/case_studies/ssm_hurricane_tracking.myst.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,6 @@ def generate_period_forecasts(
272272
273273
"""
274274
if padded_exogenous_data is not None:
275-
# Hack that should be fixed in StateSpace soon
276-
try:
277-
del ssm_model._exog_data_info[exogenous_data_name][
278-
"dims"
279-
] # Be careful if you copy this function the keys may change in your case
280-
except KeyError as error:
281-
print(f"Key not found: {error}")
282275
283276
period_forecasts = []
284277
if isinstance(padded_exogenous_data, pl.DataFrame):
@@ -1337,7 +1330,7 @@ f_mean, cppc_vcov = generate_period_forecasts(
13371330
)
13381331
```
13391332

1340-
Similaryly, our 24-hour forecasts are also slightly worse off compared to those produced by the simple model.
1333+
Similarly, our 24-hour forecasts are also slightly worse off compared to those produced by the simple model.
13411334

13421335
```{code-cell} ipython3
13431336
fig = plot_hurricane_path(

0 commit comments

Comments
 (0)