pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.66k stars 2k forks source link

Avoid spurious deprecation warning in CustomDist #7391

Closed ricardoV94 closed 3 months ago

ricardoV94 commented 3 months ago

Description

The warning is causing the CI in pymc-experimental to fail https://github.com/pymc-devs/pymc-experimental/pull/352

Also allow multivariate CustomDist to be created when signature suffices to infer core shape.

Related Issue

Checklist

Type of change


📚 Documentation preview 📚: https://pymc--7391.org.readthedocs.build/en/7391/

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.19%. Comparing base (b496127) to head (b2f3c48). Report is 83 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pymc-devs/pymc/pull/7391/graphs/tree.svg?width=650&height=150&src=pr&token=JFuXtOJ4Cb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)](https://app.codecov.io/gh/pymc-devs/pymc/pull/7391?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) ```diff @@ Coverage Diff @@ ## main #7391 +/- ## ======================================= Coverage 92.19% 92.19% ======================================= Files 103 103 Lines 17214 17208 -6 ======================================= - Hits 15870 15865 -5 + Misses 1344 1343 -1 ``` | [Files with missing lines](https://app.codecov.io/gh/pymc-devs/pymc/pull/7391?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs) | Coverage Δ | | |---|---|---| | [pymc/distributions/custom.py](https://app.codecov.io/gh/pymc-devs/pymc/pull/7391?src=pr&el=tree&filepath=pymc%2Fdistributions%2Fcustom.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs#diff-cHltYy9kaXN0cmlidXRpb25zL2N1c3RvbS5weQ==) | `95.54% <100.00%> (+1.08%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/pymc-devs/pymc/pull/7391/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymc-devs)