Switch to loo.matrix() instead of loo.function() by default?
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 401
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
I think loo.matrix() is quite a bit faster than loo.function() and the latter is really only needed when N is very large for memory issues. Super large N is not uncommon but probably the minority of rstanarm use cases, so we're not really optimizing this. brms uses loo.matrix with an option to switch to loo.function. Perhaps we should do the same?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the rstanarm entry points that currently call loo.function() and trace how their defaults are exposed. Compare the surrounding handling with the proposed loo.matrix() default, including the need for an option for very large N. Done means the default behavior and fallback choice are clearly specified and consistently applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100