Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabricioarendtorres/blasso_sa
Implementation of Simulated Annealing for the Bayesian LASSO.
https://github.com/fabricioarendtorres/blasso_sa
Last synced: about 1 month ago
JSON representation
Implementation of Simulated Annealing for the Bayesian LASSO.
- Host: GitHub
- URL: https://github.com/fabricioarendtorres/blasso_sa
- Owner: FabricioArendTorres
- License: mit
- Created: 2018-08-15T09:02:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T08:44:52.000Z (about 6 years ago)
- Last Synced: 2023-08-29T18:56:04.917Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 342 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BLASSO_SA
MAP estimation of the Bayesian LASSO via Simulated Annealing.
# NOTE
Depends on a submodule (for sampling from the Generalized Inverse Gaussian), so don't forget to initialize and update the submodules when cloning the repo.
# Sampler
The Simulated Annealing is based on the Gibbs sampler presented in [1] (with marginalized out μ).Cooling down of the posterior conditionals can be achieved by a parameter shift of the distributions. For the Inverse Gaussian distribution we make use of the fact that we can represent an IG as a Generalized Inverse Gaussian
with p=-0.5.Let T be the current Temperature. Then we can sample according to:
# Sampling from the Normal
We want to avoid having to directly invert A:solve for b by backward subtitution and for μ by forward and backward substitution.
# Example
Example Jupyter Notebook# References