-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Robustify handling of numerical issues in samplers (#1512)
* Make minor edit to REL_INST. * Error trap adaptation interval < 2 for various block samplers. * Robustify handling of NaN/Inf/-Inf in samplers. Add checkLogProb() that converts NaN to -Inf and warns of Inf values. Use checkLogProb() in various samplers (primarily slice and RW style). * Fix indentation. * Fix syntax error. * updates * updated indentation * Add missing checkLogProb in sampler_RW. * Fix typo in name. * Refine use of checkLogProb to use directly on log prob values, to better handle possible cases like "3 - Inf". Fix tests in light of use of checkLogProb. * Clean up testing for use of checkLogProb. Recreate gold files for trunc and dynamicIndexing testing for mcmc tests that get different samples because of changes in number of random numbers generated. * Inline checkLogProb. --------- Co-authored-by: Daniel Turek <danielturek@gmail.com>
- Loading branch information
1 parent
a7d451e
commit b6973e1
Showing
11 changed files
with
403 additions
and
372 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
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
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
Oops, something went wrong.