Skip to content

Updated Notebook to use new dataclasses implementation for setting SSM information#859

Merged
Dekermanjian merged 2 commits into
pymc-devs:mainfrom
Dekermanjian:ssm_hurricane
Apr 9, 2026
Merged

Updated Notebook to use new dataclasses implementation for setting SSM information#859
Dekermanjian merged 2 commits into
pymc-devs:mainfrom
Dekermanjian:ssm_hurricane

Conversation

@Dekermanjian

Copy link
Copy Markdown
Contributor

When setting an SSM's states, parameters, exogenous data, shocks, and coordinates we now have a new implementation using dataclasses. I updated the models in the notebook to use this new design.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@review-notebook-app

review-notebook-app Bot commented Mar 16, 2026

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

jessegrabowski commented on 2026-03-16T02:55:19Z
----------------------------------------------------------------

Line #10.        def set_states(self):

half as long!


Dekermanjian commented on 2026-03-16T21:27:00Z
----------------------------------------------------------------

Yeah, it really is so much better this way!

@review-notebook-app

review-notebook-app Bot commented Mar 16, 2026

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

jessegrabowski commented on 2026-03-16T02:55:20Z
----------------------------------------------------------------

60s -> 20s on sampling is nice too (unless you got a new computer)


Dekermanjian commented on 2026-03-16T21:31:47Z
----------------------------------------------------------------

I am using the same computer. The speed-boost is really nice. Is this due to the inplace blockwise work you did in PyTensor?

@review-notebook-app

review-notebook-app Bot commented Mar 16, 2026

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

jessegrabowski commented on 2026-03-16T02:55:21Z
----------------------------------------------------------------

The NoVarLabeller API might have changed, you're still getting the variable in this plot.


Dekermanjian commented on 2026-03-16T21:32:14Z
----------------------------------------------------------------

I will take a look at how the new API does this and fix it.

@jessegrabowski jessegrabowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Someone else will have to weigh in on why we have merge conflicts. Maybe @fonnesbeck knows?

Copy link
Copy Markdown
Contributor Author

Yeah, it really is so much better this way!


View entire conversation on ReviewNB

Copy link
Copy Markdown
Contributor Author

I am using the same computer. The speed-boost is really nice. Is this due to the inplace blockwise work you did in PyTensor?


View entire conversation on ReviewNB

Copy link
Copy Markdown
Contributor Author

I will take a look at how the new API does this and fix it.


View entire conversation on ReviewNB

@Dekermanjian Dekermanjian merged commit b16be95 into pymc-devs:main Apr 9, 2026
2 checks passed
@Dekermanjian Dekermanjian deleted the ssm_hurricane branch April 9, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants