Skip to content
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

uneven x_vals #424

Merged
merged 1 commit into from
Apr 29, 2024
Merged

uneven x_vals #424

merged 1 commit into from
Apr 29, 2024

Conversation

aloctavodia
Copy link
Contributor

@aloctavodia aloctavodia commented Apr 27, 2024

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
Copy link

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 ⚠️
preliz/internal/distribution_helper.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aloctavodia aloctavodia merged commit 9ba3af1 into arviz-devs:main Apr 29, 2024
4 checks passed
@aloctavodia aloctavodia deleted the iplot branch April 29, 2024 19:33
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.

2 participants