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 9c14472 commit 16761c7Copy full SHA for 16761c7
pymc_extras/statespace/models/structural/components/autoregressive.py
@@ -98,7 +98,7 @@ def __init__(
98
)
99
100
def populate_component_properties(self):
101
- k_states = self.k_states // self.k_endog
+ k_states = self.k_states // self.k_endog # this is also the number of AR lags
102
103
self.state_names = [
104
f"L{i + 1}[{state_name}]"
@@ -122,7 +122,7 @@ def populate_component_properties(self):
122
123
self.param_info = {
124
f"params_{self.name}": {
125
- "shape": (self.k_states,) if self.k_endog == 1 else (self.k_endog, self.k_states),
+ "shape": (k_states,) if self.k_endog == 1 else (self.k_endog, k_states),
126
"constraints": None,
127
"dims": (AR_PARAM_DIM,)
128
if self.k_endog == 1
0 commit comments