-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove find_contrained_prior #7680
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7680 +/- ##
==========================================
- Coverage 92.70% 92.66% -0.05%
==========================================
Files 107 106 -1
Lines 18391 18279 -112
==========================================
- Hits 17050 16938 -112
Misses 1341 1341
|
Can you link the issue about the deprecation? |
How long ago was v5.17 released? Time is more important than version numbers |
Comment updated |
I now I should have commented on the original issue but can't we add the max entropy condition to |
PreliZ's distributions have a |
How difficult would it be to port max_ent to find_constrained_prior? |
If you want to rewrite This will compute the maxentropy Gamma distribution that has 90% of the mass between 1 and 10, and it will return it as a PyMC distribution, that you can then use as usual. pz.maxent(pz.Gamma(), 1, 10, 0.9).to_pymc() You can also do other stuff like fix some of the parameters (mu in this example) pz.maxent(pz.Gamma(mu=4), 1, 10, 0.9) Or stats like median or mode, pz.maxent(pz.Beta(), 0.1, 0.7, 0.94, fixed_stat=("mode", 0.3)) More examples here. https://preliz.readthedocs.io/en/latest/examples/gallery/direct_elicitation_1D.html PreliZ's distributions follow the same parameterization used by PyMC. For instance, Gamma can be defined using, alpha-beta, or mu-sigma. |
Would it be too hacky to replace |
We did that with arviz for a long time, so as hacky as that. |
I think that could be worth considering, just because |
find_contrained_prior
was deprecated in v5.17.0 (#7458), released on Oct 3, 2024. This PR removes it completely.📚 Documentation preview 📚: https://pymc--7680.org.readthedocs.build/en/7680/