-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable compatibility with loo
package
#526
Comments
Thanks for the report. Do you see this across all models and multiple families? Note I have relabelled this as a enhancement vs a bug as I think that is a better fit |
Agree it could be thought of as enhancement over bug. There is some possibility that this incompatibility is suggestive of a wider issue which could be thought of as a bug. |
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is very likely related to #479 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Using the code as present on works in the sense of giving this: r$> loo(fit, cores = 10)
Computed from 2000 by 91 log-likelihood matrix.
Estimate SE
elpd_loo -393.1 22.8
p_loo 4.4 0.9
looic 786.1 45.5
------
MCSE of elpd_loo is 0.1.
MCSE and ESS estimates assume MCMC draws (r_eff in [0.4, 1.1]).
All Pareto k estimates are good (k < 0.7).
See help('pareto-k-diagnostic') for details. After about 5 minutes. The issue was that the cens modification needs to be as long as the data. |
I will add a test for the loo package in order to close this (once the runtime has been brought down) |
The
loo
package I believe is compatible with base-brms
models. It looks like we might need to modify our custom likelihoods / families in order to make them compatible. The error I get is for a simple example traces back to thepdist_draw
function withinepidist_gen_log_lik
and most immediately looks to involvecens
being missing.loo
is a leading package for Bayesian model comparison, so I think it's relatively important that we support it. I would like to use it in my work to compare different model specifications. (I had also wanted to extend the Ebola vignette to perform model comparison usingloo
.)Here is a reproducible example:
Created on 2025-02-11 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: