This repository has been archived by the owner on Jan 23, 2022. It is now read-only.
forked from tensorflow/probability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve accuracy of binomial log_prob for large counts and small prob…
…abilities. The largest accuracy gain is due to using the new lbeta. There is also a considerable additional gain by not converting input probs to logits-space and back. Because Binomial is a rejection sampler, this change affects sampling too. PiperOrigin-RevId: 305297126
- Loading branch information
1 parent
46456f7
commit 62cf00a
Showing
3 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters