You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loo_subsample is meant to be a faster alternative to loo and is most likely to be used for complex models.
Unfortunately, it seems the implementation in brms (unlike the implementation in loo_subsample) incurs overhead when looking up parameters that (in my simulations) costs more than the subsampling saves.
When I profile the function (documented in the forum), most of the time is spent in p called by predictor_re. Apparently, according to @jgabry you could get rid of the r_eff call but not log_lik. So, based on my limited understanding I thought, to solve this I guess either p would need to become faster (probably not possible) or the extraction of observations and draws happens once, vectorised?
Apparently, according to @jgabry you could get rid of the r_eff call but not log_lik.
Right, the r_eff calculation is nice to have but often not essential. In many of the packages that call the loo package (e.g. rstanarm, brms, cmdstanr, etc.) we were always computing r_eff. But @avehtari pointed out that it's usually not necessary and we should probably default not compute it unless the user requests it.
Based on this forum thread
loo_subsample
is meant to be a faster alternative toloo
and is most likely to be used for complex models.Unfortunately, it seems the implementation in brms (unlike the implementation in
loo_subsample
) incurs overhead when looking up parameters that (in my simulations) costs more than the subsampling saves.When I profile the function (documented in the forum), most of the time is spent in
p
called bypredictor_re
. Apparently, according to @jgabry you could get rid of the r_eff call but not log_lik. So, based on my limited understanding I thought, to solve this I guess eitherp
would need to become faster (probably not possible) or the extraction of observations and draws happens once, vectorised?My reprex:
The text was updated successfully, but these errors were encountered: