Skip to content

Radmeth performance improvements#282

Merged
andrewdavidsmith merged 12 commits intomasterfrom
radmeth-performance
Aug 11, 2025
Merged

Radmeth performance improvements#282
andrewdavidsmith merged 12 commits intomasterfrom
radmeth-performance

Conversation

@andrewdavidsmith
Copy link
Copy Markdown
Collaborator

Implemented a novel algorithm for computing the likelihood and for computing the likelihood's gradient for the beta binomial with general design

…lgorithm to calculate the beta-binomial likelihood
…get the mapping from sample to group; also put some functions here that were previously in radmeth.cpp because they belong with the model structs
…mputing the beta-binomial likelihood and gradients. This algorithm accumulates mass without the use of unstable gamma functions but minimizes the number of summations by re-grouping terms. Doing this required a focus on groups rather than factors and samples, where a group is a set of factor level combinations
…ecutive sites of extreme coverage can cause an imbalance in terms of work done by threads. Also using a decimal digit of precision in the progress reporting
…ting some log1p that can be reused across groups
…mputing the beta-binomial likelihood and gradients. This algorithm accumulates mass without the use of unstable gamma functions but minimizes the number of summations by re-grouping terms. Doing this required a focus on groups rather than factors and samples, where a group is a set of factor level combinations
@andrewdavidsmith andrewdavidsmith merged commit e6bf271 into master Aug 11, 2025
6 checks passed
@andrewdavidsmith andrewdavidsmith deleted the radmeth-performance branch August 11, 2025 01:12
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.

1 participant