Skip to content
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

Additional LOO utilities #8

Open
sethaxen opened this issue Aug 7, 2023 · 0 comments
Open

Additional LOO utilities #8

sethaxen opened this issue Aug 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@sethaxen
Copy link
Member

sethaxen commented Aug 7, 2023

From arviz-devs/arviz#2059, we should add the following utilities:

  • loo_expectation(log_likelihood, expectand; kwargs...): Approximate each expectand with respect to each LOO posterior using PSIS-LOO. e.g. loo_pit could be reimplemented by setting expectand = y_pred .≤ reshape(y, 1, 1, size(y)...). It's important to support the option of computing expectation-specific PSIS diagnostics, which requires Add convenience function for computing expectation-specific diagnostics PSIS.jl#21.
  • loo_predictive_error(log_likelihood, metric; kwargs...): uses loo_expectation to compute LOO posterior predictive means and then use metric to evaluate the quality of the fit.
  • loo_crps(psis_loo_result; scale=false, kwargs...): compute continuous ranked probability score (CRPS) or it's scaled variant SCRPS, which is another strictly proper scoring rule besides Log score (ELPD) to use for model comparison. Requires 2 posterior draws for each draw-chain. But before adding this, we should think about the model comparison API some more. In principle the user could select different scores or accuracy metrics for model comparison. And section 2.1 of https://arxiv.org/abs/1704.02030 generalizes stacking weights for any proper scoring rule, so our stacking implementation could be updated to do so as well.

The APIs written here are putative. Odds are they will be refined during implementation.

@sethaxen sethaxen added the enhancement New feature or request label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant