accelerate the optimization algorithm in stacking
@yao-yl is already working on this.
Since Aug 30, 2019.
- Dominant language
- R
- Stars
- 157
- Forks
- 38
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 2
Description
stacking_weights() optimize the weights, which is a (K-1) simplex. Currently, it renders the constrained optimization and optimizes the first (K-1) weights in a constraint space. When the number of models is large, it is slow (e.g., more than 10 minutes for 10000 models * 100 data)
I did some experiment and found it would be much quicker if it transformed the simplex in the unconstrained space first (several seconds for the same task above). The easiest way is to call optimizing() in rstan and it does the transformation automatically. It also makes it easier if we need extra prior on weights.
@jgabry What is a good way to execute a pre-compiled stan object, without making the whole package dependent on rstan?
Contributor guide
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.
Assessment
This issue has not been assessed yet.