Skip to content

Stabilize priors #141

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Stabilize priors #141

wants to merge 2 commits into from

Conversation

oschulz
Copy link
Contributor

@oschulz oschulz commented Mar 20, 2025

Ensure (log-)density of generated priors is finite over their whole support.

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 28.59%. Comparing base (c470312) to head (f459dea).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/priors.jl 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #141      +/-   ##
==========================================
+ Coverage   28.55%   28.59%   +0.03%     
==========================================
  Files          37       37              
  Lines        3666     3672       +6     
==========================================
+ Hits         1047     1050       +3     
- Misses       2619     2622       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -7,11 +7,11 @@ function get_standard_pseudo_prior(h::Histogram, ps::NamedTuple{(:peak_pos, :pea
μ = ifelse(fixed_position, ConstValueDist(ps.peak_pos), Normal(ps.peak_pos, 0.2*ps.peak_sigma)),
σ = weibull_from_mx(ps.peak_sigma, 1.5*ps.peak_sigma),
n = weibull_from_mx(ps.peak_counts, 1.5*ps.peak_counts),
skew_fraction = ifelse(low_e_tail, truncated(weibull_from_mx(0.002, 0.008), 0.0, 0.5), ConstValueDist(0.0)),
skew_fraction = ifelse(low_e_tail, truncated(weibull_from_mx(0.002, 0.008), 1e-7, 0.5), ConstValueDist(0.0)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you quickly explain why 1e-7?

@theHenks theHenks added bug Something isn't working enhancement New feature or request labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants