This post is by Aki
We are happy to announce a new major release of projpred: version 3.0.0!
projpred R package provides decision theoretical approach for Bayesian variable and model selection.
This release brings many user-facing improvements, including:
- a corrected LOO validated search that no longer uses the left-out observation in the projections, reducing bias in the elpd_loo estimate
- a major algorithm improvement for the LOO validated search: fold-specific weight perturbation makes the elpd curves smoother and improves the uncertainty estimates
- improved projection algorithms with substantial speedups (3x to 6300x) for all model types that we tested (3x to 6300x speedup), and many bug fixes that improve the projection accuracy
- a screen search for additional search speedups for some models
- a new parallel implementation based on the future package that reduces memory use and overhead
improved documentation
Sara van Erp had been experimenting using projpred with SEMs, but she had problems with speed. I had advised how to use more approximate but faster computation in projpred. Sara did get some interesting results with those, too. This fall, I happened to have time to investigate the speed issue more. It turned out there were couple for loops were it was possible to move part of the common computation outside of the loop and use some linear regression matrix algebra tricks, and boom, 6300x speedup which meant that the better algorithm options that had taken 15h to run took now less than 10s! I then went through different algorithms used for different models, and was able to get significant speedups for all. Speedups for non-normal models are not as big with some exceptions. Importantly these speedups didn’t introduce new approximations so it was easy to test that the behavior did stay the same.
With new faster code, it was easier to compare different projection methods with many simulation repetitions, which made the existing bias and extra jumpiness more clear and investigation of those lead to corrected LOO validated search and fold-specific weight perturbation.
See more at projpred v3.0.0 highlights posting and projpred NEWS.