arviz-devs / preliz

A tool-box for prior elicitation.
https://preliz.readthedocs.io
Apache License 2.0
78 stars 9 forks source link

uneven x_vals #424

Closed aloctavodia closed 4 months ago

aloctavodia commented 4 months ago

Compute xvals, using a mix of linearspaced and "quantile-spaced" values. This provides nicer plot smoother plots at the bulk and tails for both heavy and thin tails distributions. This also change hdi_from_pdf in order to return nan when computations of the hdi fails (for instance for invalid parameter values like sigma=0).

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 81.12%. Comparing base (6124c61) to head (31a80e1).

Files Patch % Lines
preliz/distributions/distributions.py 90.90% 1 Missing :warning:
preliz/internal/distribution_helper.py 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #424 +/- ## ========================================== - Coverage 81.14% 81.12% -0.03% ========================================== Files 92 92 Lines 7490 7501 +11 ========================================== + Hits 6078 6085 +7 - Misses 1412 1416 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.