Skip to content

Fix compatibility with PyMC>=5.16#484

Merged
digicosmos86 merged 9 commits into
mainfrom
479-allow-pymc-=-515
Jul 12, 2024
Merged

Fix compatibility with PyMC>=5.16#484
digicosmos86 merged 9 commits into
mainfrom
479-allow-pymc-=-515

Conversation

@digicosmos86
Copy link
Copy Markdown
Collaborator

@digicosmos86 digicosmos86 commented Jul 8, 2024

In PyMC>=5.16, which depends on pytensor>=2.23.0, the way to define RandomVariable class has changed to use a signature class property, which requires changes in HSSM codebase. In this PR, the following was changed:

  1. removed ndim_supp which is no longer supported in pytensor
  2. changed some of the ways extra_fields is passed due to this change. extra_fields, once defined, can no longer be changed (we will remove support for extra_fields for a different class for RL support in the future. This is just a temporary fix)
  3. changed how missing data and deadline is handled
  4. Also implemented a temporary fix to graphing

@digicosmos86 digicosmos86 linked an issue Jul 8, 2024 that may be closed by this pull request
Copy link
Copy Markdown
Member

@AlexanderFengler AlexanderFengler left a comment

Choose a reason for hiding this comment

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

Looks good!

@digicosmos86 digicosmos86 merged commit 2b8fadb into main Jul 12, 2024
@digicosmos86 digicosmos86 deleted the 479-allow-pymc-=-515 branch July 12, 2024 13:42
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.

Implement temporary fix to graphing while refactoring for bambi 0.14 Allow PyMC >= 5.15 Incorrect model graph

2 participants