We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35bf94 commit 639aa14Copy full SHA for 639aa14
pymc_extras/statespace/models/structural.py
@@ -1307,14 +1307,13 @@ def make_symbolic_graph(self) -> None:
1307
if self.remove_first_state:
1308
# In this case, parameters are normalized to sum to zero, so the current state is the negative sum of
1309
# all previous states.
1310
- one_d = np.ones((self.duration, self.duration))
1311
zero_d = np.zeros((self.duration, self.duration))
1312
id_d = np.eye(self.duration)
1313
1314
blocks = []
1315
1316
# First row: all -1_d blocks
1317
- first_row = [-one_d for _ in range(self.season_length - 1)]
+ first_row = [-id_d for _ in range(self.season_length - 1)]
1318
blocks.append(first_row)
1319
1320
# Rows 2 to season_length-1: shifted identity blocks
0 commit comments