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

Updating sample minimum/max handling for cluster maf #36

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Conversation

htjb
Copy link
Owner

@htjb htjb commented Aug 21, 2023

The clusterMAF components were previously normalised based on the bounds of the cluster. This is fine but causes issues when calculating log probabilities for samples outside the bounds of the cluster. I'd fixed this with a catch that set the log-probability of these samples to 1e-300. However, a perhaps better way to deal with this is to normalise the clusters with the range of the target distributions, as in this PR.

@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.07% 🎉

Comparison is base (698fdef) 79.44% compared to head (b7980cf) 79.52%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage   79.44%   79.52%   +0.07%     
==========================================
  Files           5        5              
  Lines         506      503       -3     
==========================================
- Hits          402      400       -2     
+ Misses        104      103       -1     
Files Changed Coverage Δ
margarine/clustered.py 78.34% <ø> (+0.21%) ⬆️

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

@htjb
Copy link
Owner Author

htjb commented Aug 21, 2023

PR evolved from some work looking at the clusterMAF KL calculation (which looks fine!).

@htjb htjb merged commit ecdd77b into master Aug 21, 2023
4 checks passed
@htjb htjb deleted the clustering_kl branch August 21, 2023 04:10
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