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

Resolve numerical instability in entropy of GeometricLogits. #1852

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

tillahoffmann
Copy link
Contributor

@tillahoffmann tillahoffmann commented Aug 19, 2024

Resolves numerical instability in entropy() method of GeometricLogits as discussed in #1696 and #1706.

I tried adding T(dist.GeometricLogits, np.array([-60.0, 60.0])), to the DISCRETE list of distributions in test/test_distributions.py to verify the changes, but that led to a number of tests failing.

Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

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

Thanks, Till!

@fehiepsi fehiepsi merged commit e0d450b into pyro-ppl:master Aug 26, 2024
4 checks passed
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