Skip to content
Snippets Groups Projects

Switch PyMC3 to PyMC (which is the new name starting from PyMC v4.0.0)

Merged Matthew David Pitkin requested to merge matthew-pitkin/bilby:pymc3_to_pymc4 into master

This MR updates the PyMC3 interface to use the new version of PyMC, which is now v4.0.0 (the version number suffix has been dropped). This is mainly a very straightforward port by replacing imports of pymc3 with pymc. The Theano library has also been renamed to aesara, so those are changed too.

The test suite runs and also the two examples, linear_regression_pymc.py and linear_regression_pymc_custom_likelihood.py, both work exactly as expected.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I tested this out locally and found a few bits of broken code, I've added suggestions to fix them in the diff.

    The other change I would request is to add pymc back into the sampler integration tests, that was how I found most of these issues.

  • added 1 commit

    • e4045826 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 245edc6c - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • afa203d5 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Matthew David Pitkin resolved all threads

    resolved all threads

  • added 1 commit

    • eee8cd69 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 66c03c6a - sampler_run_test.py: add pymc back into tests

    Compare with previous version

  • added 1 commit

    • e81c2015 - pymc_test.py: remove unused pytest import

    Compare with previous version

  • Colm Talbot approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading