Skip to content

Add beta distribution #391

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 3 commits into
base: master
Choose a base branch
from

Conversation

BaerVervergaert
Copy link

Added the Beta distribution (scipy.stats.beta) with loc fixed at zero and scale fixed at one.

  • The Beta distribution has support for LogScore
  • Added Beta LogScore test_beta test

self.log_a = params[0]
self.log_b = params[1]
self.a = np.exp(params[0]) # since params[0] is log(a)
self.b = np.exp(params[1]) # since params[1] is log(b)
Copy link
Author

@BaerVervergaert BaerVervergaert Jul 6, 2025

Choose a reason for hiding this comment

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

Might need to introduce clipping here because sometimes the algorithm overflows and sets value a or b to 0.

@alejandroschuler alejandroschuler self-requested a review July 7, 2025 16:49
@ryan-wolbeck ryan-wolbeck self-requested a review July 14, 2025 18:34
@ryan-wolbeck
Copy link
Collaborator

@BaerVervergaert can you merge master into your PR when you have time? That way we can test 3.13 as well

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.

3 participants