You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you create a structural timeseries model with a TimeSeasonality component, it says the corresponding coefficients should have dim {name}_state, but should actually be {name}_periods.
ws=st.TimeSeasonality(
season_length=7, # day of weekname="weekly",
innovations=True,
state_names=["Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun"],
)
sts_mod= (ws).build()
says:
The following parameters should be assigned priors inside a PyMC model block:
weekly_coefs -- shape: (6,), constraints: None, dims: (weekly_state, )
sigma_weekly -- shape: (1,), constraints: Positive, dims: None
P0 -- shape: (6, 6), constraints: Positive semi-definite, dims: ('state', 'state_aux')
However, if you use weekly_state as the dim, it throws an error:
I thought maybe this was arising from this line but sts_mod.param_dims correctly returns {'weekly_coefs': ('weekly_periods',), 'P0': ('state', 'state_aux')} in this case, so I suppose I'm not quite sure exactly how the recordkeeping for dims works.
The text was updated successfully, but these errors were encountered:
If you create a structural timeseries model with a
TimeSeasonality
component, it says the corresponding coefficients should have dim{name}_state
, but should actually be{name}_periods
.says:
However, if you use
weekly_state
as the dim, it throws an error:returns
Changing instead to
weekly_periods
fixes it:I thought maybe this was arising from this line but
sts_mod.param_dims
correctly returns{'weekly_coefs': ('weekly_periods',), 'P0': ('state', 'state_aux')}
in this case, so I suppose I'm not quite sure exactly how the recordkeeping for dims works.The text was updated successfully, but these errors were encountered: