Skip to content

Commit

Permalink
Fix loo test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Dec 18, 2023
1 parent 4fa40b6 commit 65e8cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ loo <- function(variables = "log_lik", r_eff = TRUE, moment_match = FALSE, ...)
loo = loo_result,
post_draws = function(x, ...) { x$draws(format = "draws_matrix") },
log_lik_i = log_lik_i,
unconstrain_pars = function(x, pars, ...) { do.call(rbind, lapply(x$unconstrain_draws(), function(chain) { do.call(rbind, chain) })) },
unconstrain_pars = function(x, pars, ...) { x$unconstrain_draws(format = "draws_matrix") },
log_prob_upars = function(x, upars, ...) { apply(upars, 1, x$log_prob) },
log_lik_i_upars = log_lik_i_upars,
...
Expand Down

0 comments on commit 65e8cac

Please sign in to comment.