Skip to content

Error message in build_statespace_graph when cycle is one of the model components #280

Closed Answered by jessegrabowski
rklees asked this question in Q&A
Discussion options

You must be logged in to vote

Make sure you !pip uninstall pymc-experimental before you re-install from the bug-fix branch. I had to do this for the fixes to be applied. After that I was able to run your code. There were some mistakes in the model block, here is a corrected version. I added dims to several places that were missing them:

mod = st.LevelTrendComponent(order=2, innovations_order=[0, 1])
mod += st.CycleComponent(name='annual_cycle', cycle_length=12, innovations=True)
mod += st.FrequencySeasonality(name='SA_cycle', season_length=5.347, n=1, innovations=True)
mod += st.MeasurementError(name="obs")

model = mod.build(name="IRW+cycle+measurement_error")

initial_trend_dims, sigma_trend_dims, annual_cycle_dims,…

Replies: 19 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jessegrabowski
Comment options

@jessegrabowski
Comment options

Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jessegrabowski
Comment options

@jessegrabowski
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Answer selected by jessegrabowski
Comment options

You must be logged in to vote
1 reply
@jessegrabowski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants