Skip to content

Commit

Permalink
Merge pull request #892 from stan-dev/ebfmi-threshold
Browse files Browse the repository at this point in the history
Align ebfmi threshold with cmdstan
  • Loading branch information
andrjohns authored Jan 11, 2024
2 parents 1b77cf4 + 29a4682 commit 5ae46d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ ebfmi <- function(post_warmup_sampler_diagnostics) {
efbmi_per_chain
}

check_ebfmi <- function(post_warmup_sampler_diagnostics, threshold = 0.2) {
check_ebfmi <- function(post_warmup_sampler_diagnostics, threshold = 0.3) {
efbmi_per_chain <- ebfmi(post_warmup_sampler_diagnostics)
nan_efbmi_count <- sum(is.nan(efbmi_per_chain))
efbmi_below_threshold <- sum(efbmi_per_chain < threshold)
Expand Down

0 comments on commit 5ae46d3

Please sign in to comment.