Skip to content

Rethink2 to pymc v5#234

Open
yahrMason wants to merge 23 commits into
pymc-devs:mainfrom
yahrMason:rethink2_to_pymc_v5
Open

Rethink2 to pymc v5#234
yahrMason wants to merge 23 commits into
pymc-devs:mainfrom
yahrMason:rethink2_to_pymc_v5

Conversation

@yahrMason

@yahrMason yahrMason commented Jan 6, 2024

Copy link
Copy Markdown
Contributor

Rethinking_2 Conversion to PyMC v5+

I am working on updating the Rethinking_2 notebooks to the current version of PyMC + Pytensor. The changes I am making are:

  • updating the environment yml and Readme
  • changing the causalgraphicalmodels dependency to this updated repo as the original is no longer maintained and is not compatible with current python versions: https://github.com/BirkhoffG/causalgraphicalmodels/tree/master
  • replace all theano/aesara references with pytensor
  • adopt modern arviz naming conventions (ie idata as opposed to trace)
  • use coords to manage model dimensions
  • make sure all notebooks run with current versions of PyMC/Pytensor/Arviz

I made an initial pass through the notebooks and changed all aesara/theano refs to pytensor, and changed the names of all inference data objects to the standard idata convention. Now I need to go through the notebooks and execute them and make sure that they run properly. The following list tracks my progress. Anyone feel free to clone my branch and make edits/updates.

To Do:

  • Update Readme and yml
  • Add missing data sets
  • Add notes about coords and idata_kwargs={"log_likelihood": True}
  • Chapter 2 Notebook
  • Chapter 3 Notebook
  • Chapter 4 Notebook
  • Chapter 5 Notebook
  • Chapter 6 Notebook
  • Chapter 7 Notebook
  • Chapter 8 Notebook
  • Chapter 9 Notebook
  • Chapter 10 Notebook
  • Chapter 11 Notebook
  • Chapter 12 Notebook
  • Chapter 13 Notebook
  • Chapter 14 Notebook
  • Chapter 15 Notebook
  • Chapter 16 Notebook

@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

@yahrMason

yahrMason commented Jan 6, 2024

Copy link
Copy Markdown
Contributor Author

pre-commit is passing locally. Not sure what's causing the issue.

@twiecki

twiecki commented Jan 7, 2024

Copy link
Copy Markdown
Member

Amazing effort!

@twiecki

twiecki commented Jan 7, 2024

Copy link
Copy Markdown
Member

The pre-commit looks to be a version problem maybe.

@twiecki twiecki mentioned this pull request Jan 7, 2024
@maresb maresb mentioned this pull request Jan 7, 2024
@twiecki

twiecki commented Jan 7, 2024

Copy link
Copy Markdown
Member

@yahrMason Can you rebase? should fix pre-commit issues.

@yahrMason

Copy link
Copy Markdown
Contributor Author

@twiecki ah yep, that solved it. Thanks for that.

@twiecki twiecki requested review from cluhmann and fonnesbeck January 8, 2024 03:45
@twiecki

twiecki commented Jan 8, 2024

Copy link
Copy Markdown
Member

I think @cluhmann had started on a conversion as well, so maybe he can take a look.

@yahrMason

Copy link
Copy Markdown
Contributor Author

This will also close #192 and #225

@yahrMason yahrMason marked this pull request as draft January 10, 2024 03:29
@yahrMason yahrMason marked this pull request as ready for review January 14, 2024 02:56
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