Skip to content

Commit 46c90d3

Browse files
committed
Fix GitHub issue #166.
1 parent ca3e225 commit 46c90d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/loo_moment_matching.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ loo_moment_match.default <- function(x, loo, post_draws, log_lik_i,
151151
}
152152
}
153153
if (!is.null(loo$psis_object)) {
154+
attr(loo$psis_object, "norm_const_log") <- matrixStats::colLogSumExps(loo$psis_object$log_weights)
154155
loo$psis_object$diagnostics <- loo$diagnostics
155156
}
156157

0 commit comments

Comments
 (0)