Skip to content

SSM hurricane Notebooks update#804

Merged
aloctavodia merged 32 commits intopymc-devs:mainfrom
Dekermanjian:ssm_hurricane
Feb 15, 2026
Merged

SSM hurricane Notebooks update#804
aloctavodia merged 32 commits intopymc-devs:mainfrom
Dekermanjian:ssm_hurricane

Conversation

@Dekermanjian
Copy link
Copy Markdown
Contributor

@Dekermanjian Dekermanjian commented Aug 31, 2025

updated notebook to utilize the newly added sample_filter_outputs method.

Previously we were pulling out the filter outputs by passing save_kalman_filter_outputs_in_idata to the build_statespace method. This will be deprecated in the future and we have added a utility method sample_filter_outputs to allow users to sample the KF outputs.


📚 Documentation preview 📚: https://pymc-examples--804.org.readthedocs.build/en/804/

@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

@aloctavodia
Copy link
Copy Markdown
Member

@Dekermanjian should we solve the conflicts or close this PR?

@Dekermanjian
Copy link
Copy Markdown
Contributor Author

@aloctavodia my apologies. For some reason I thought this PR was merged a long time ago. I will resolve the conflicts.

rebased main to resolve conflicts
2. Improved 24-hour ahead forecasts of simplest model
3. Added a section and model with how to add exogenous variables to the model
2. cleaned up typos and figure sizes/zoom
2. Added a non-linear B-Splines section
2. Added closing remarks section
3. Updated references bib file
2. Restructured function docstrings to comply with numpy's guidestyle
3. Added ODE derivation of Newtonian equations of motion
4. Added legend to origins scatterplot
5. Fixed issue with passing in future covariates into exogenous model when forecasting
6. Added model evaluations and comparisons
7. Fixed issue with diffuse initialization of P0
2. updated generate forecast utility
3. updated how mode=JAX is specified
4. renamed simple model to Newtonian model
5. added explanations to exogenous data duplicating and mirroring
6. added note on how the newtonian model differs from typical parameteric models
…ans and covariances. Updated plotly setting to automatically select renderer
…state means and covariances. Updated plotly setting to automatically select renderer"

This reverts commit 07355d2.

Revert using conditional posterior to using save_kalman_filter_outputs_in_idata
@review-notebook-app
Copy link
Copy Markdown

review-notebook-app bot commented Feb 14, 2026

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2026-02-14T10:01:13Z
----------------------------------------------------------------

Can you also update to use "new arviz"? You need to use

import arviz.preview as az

And then update some of the plot for instance instead of az.plot_trace use az.plot_trace_dist or az.plot_rank_dist. More information here https://python.arviz.org/en/latest/user_guide/migration_guide.html


aloctavodia commented on 2026-02-15T06:45:00Z
----------------------------------------------------------------

Use arviz style "arviz-variat" to match the style of other notebooks.

It's possible to use plotly as the plotting backend of arviz. To can set it globablly using rcParams. In order for the style to also work with plotly I think you need to set the style after importing plotly.

@aloctavodia
Copy link
Copy Markdown
Member

Great, thanks, this is ready to merge, but I would like to know if you could also update to use the new arviz? If not, we can update in a different PR.

@Dekermanjian
Copy link
Copy Markdown
Contributor Author

Great, thanks, this is ready to merge, but I would like to know if you could also update to use the new arviz? If not, we can update in a different PR.

Thank you @aloctavodia! Yes, I will update it to the new arviz today.

Copy link
Copy Markdown
Member

Use arviz style "arviz-variat" to match the style of other notebooks.

It's possible to use plotly as the plotting backend of arviz. To can set it globablly using rcParams. In order for the style to also work with plotly I think you need to set the style after importing plotly.


View entire conversation on ReviewNB

@aloctavodia aloctavodia merged commit 3403d1a into pymc-devs:main Feb 15, 2026
2 checks passed
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