pymc-experimental icon indicating copy to clipboard operation
pymc-experimental copied to clipboard

Make basic INLA interface and simple marginalisation routine

Open Michal-Novomestsky opened this issue 5 months ago • 12 comments

Addresses #532 and #344.

Relies on https://github.com/pymc-devs/pytensor/pull/1582.

Michal-Novomestsky avatar Jul 02 '25 07:07 Michal-Novomestsky

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@maresb, @zaxtax suggested that I reach out to you about the Docs not being built. Do you have any ideas why it's failing? Thanks!

Michal-Novomestsky avatar Aug 12 '25 11:08 Michal-Novomestsky

pre-commit.ci autofix

Michal-Novomestsky avatar Aug 13 '25 09:08 Michal-Novomestsky

@maresb, @zaxtax suggested that I reach out to you about the Docs not being built. Do you have any ideas why it's failing? Thanks!

Hey @Michal-Novomestsky, thanks for all your work here! I recently returned from travel so I'm just now catching up on my backlog.

I assume you're asking why the Read the Docs workflow is failing? Opening the CI logs and expanding the line with the error displays the following stack trace:

File "/home/docs/checkouts/readthedocs.org/user_builds/pymc-extras/envs/533/lib/python3.11/site-packages/pymc_extras/model/marginal/distributions.py", line 11, in from pymc.distributions.multivariate import _precision_mv_normal_logp ImportError: cannot import name '_precision_mv_normal_logp' from 'pymc.distributions.multivariate' (/home/docs/checkouts/readthedocs.org/user_builds/pymc-extras/envs/533/lib/python3.11/site-packages/pymc/distributions/multivariate.py)

Is this helpful?

maresb avatar Aug 13 '25 11:08 maresb

I assume you're asking why the Read the Docs workflow is failing? Opening the CI logs and expanding the line with the error displays the following stack trace:

File "/home/docs/checkouts/readthedocs.org/user_builds/pymc-extras/envs/533/lib/python3.11/site-packages/pymc_extras/model/marginal/distributions.py", line 11, in from pymc.distributions.multivariate import _precision_mv_normal_logp ImportError: cannot import name '_precision_mv_normal_logp' from 'pymc.distributions.multivariate' (/home/docs/checkouts/readthedocs.org/user_builds/pymc-extras/envs/533/lib/python3.11/site-packages/pymc/distributions/multivariate.py)

Is this helpful?

@maresb Ah yep that makes sense - this PR is dependent on two other PRs in PyMC and Pytensor respectively, so it (and the rest of the unittests) are failing because those haven't been merged yet. Thanks for the help!

Michal-Novomestsky avatar Aug 13 '25 11:08 Michal-Novomestsky

pre-commit.ci autofix

Michal-Novomestsky avatar Aug 16 '25 08:08 Michal-Novomestsky

For some reason, /tests/distributions/test_discrete.py::TestGeneralizedPoisson::TestRandomVariable::test_random_lam_expected_moments[2.5] is failing even though it passes locally (local is up to date with remote). It's a test case completely unrelated to this merge (TestGeneralizedPoisson), would greatly appreciate any pointers @ricardoV94 @jessegrabowski @zaxtax .

Michal-Novomestsky avatar Aug 17 '25 09:08 Michal-Novomestsky

Ok, just three test cases are failing, which @zaxtax agrees shouldn't be related to the PR itself. Once these are sorted we can merge @ricardoV94 @jessegrabowski

Michal-Novomestsky avatar Aug 17 '25 11:08 Michal-Novomestsky

What's left on getting this merged? I'm planning a LinkedIn post.

ColtAllen avatar Sep 01 '25 14:09 ColtAllen

What's left on getting this merged? I'm planning a LinkedIn post.

Just waiting on https://github.com/pymc-devs/pytensor/pull/1582 for unittests to pass, which is a PR outside the scope of GSoC

Michal-Novomestsky avatar Sep 02 '25 03:09 Michal-Novomestsky

pre-commit.ci autofix

Michal-Novomestsky avatar Sep 21 '25 07:09 Michal-Novomestsky

pre-commit.ci autofix

Michal-Novomestsky avatar Oct 24 '25 13:10 Michal-Novomestsky