pymc-devs / pymc-examples

Examples of PyMC models, including a library of Jupyter notebooks.
https://www.pymc.io/projects/examples/en/latest/
MIT License
280 stars 243 forks source link

Update Stochastic Volatility notebook to PyMC v5 #517

Closed BerylKanali closed 1 year ago

BerylKanali commented 1 year ago

Towards https://github.com/pymc-devs/pymc-examples/issues/394, closes #60

@reshamas @OriolAbril Updated this notebook(and watermark cell) with PyMC v5.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

review-notebook-app[bot] commented 1 year ago

View / edit / reply to this conversation on ReviewNB

OriolAbril commented on 2023-02-02T14:47:48Z ----------------------------------------------------------------

Line #4.            volatility = pm.GaussianRandomWalk("volatility", sigma=step_size, dims="time")

We should add an init_dist=pm.Normal.dist(0, 100) here in the GaussianRandomWalk call


review-notebook-app[bot] commented 1 year ago

View / edit / reply to this conversation on ReviewNB

OriolAbril commented on 2023-02-02T14:47:50Z ----------------------------------------------------------------

These warnings are a bug but it has been fixed already in main, so we can ignore them, they won't be here in the next version