Skip to content

Fix initial state size in CycleComponent #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

jessegrabowski
Copy link
Member

@jessegrabowski jessegrabowski commented Dec 18, 2023

Closes #281
Closes #289

The CycleComponent should have 2 states -- [cycle_sin, cycle_cos], and associated dims. I had incorrectly assigned it only a single initial state, so the cosine component was forced to always be zero at initialization.

In addition, model.param_dims will now correctly return named dims for the cycle initial state.

Adds a test of model initial states against statsmodels to catch issues like this in the future.

Test initial state against statsmodels
@ricardoV94 ricardoV94 added the bug Something isn't working label Dec 18, 2023
@jessegrabowski jessegrabowski merged commit 99f30aa into pymc-devs:main Dec 21, 2023
@jessegrabowski jessegrabowski deleted the fix-cycle-dims branch December 21, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants