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

Improve numerical stability of prob/log_prob computation of distributions.Quantized. #149

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

copybara-service[bot]
Copy link

Improve numerical stability of prob/log_prob computation of distributions.Quantized.

Similar to TFP, use the survival function instead of the CDF if its value is smaller.
This preserves more numerical accuracy when computing small differences.

@google-cla
Copy link

google-cla bot commented Apr 22, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

@copybara-service copybara-service bot force-pushed the test_443330374 branch 2 times, most recently from e40b2b7 to cd018d2 Compare April 25, 2022 16:43
…tions.Quantized`.

Similar to TFP, use the survival function instead of the CDF if its value is smaller.
This preserves more numerical accuracy when computing small differences.

PiperOrigin-RevId: 444302095
@copybara-service copybara-service bot merged commit 4bf10c7 into master Apr 25, 2022
@copybara-service copybara-service bot deleted the test_443330374 branch April 25, 2022 17:09
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.

0 participants