Skip to content

dawranadeep/Bayesian-Coresets-An-Optimization-Perspective

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bayesian Coresets: An Optimization Perspective

The code is used for the experiments in the manuscript, Bayesian Coresets: An Optimization Perspective. We add our IHT methods in addition to Trevor Campbell, etc.'s repository (commit a7d97b7 on Nov 27, 2019).

Accelerated IHT for Coreset

Please refer to the manuscript for details regarding the two algorithms, i.e., A-IHT I (Algorithm 1) and A-IHT II (Algorithm 2).

The two methods are available at IHT_toolbox/accelerated_iht.py in the toolbox and can be applied directly. Both numpy version and pytorch version are provided. For large-slcae problems, use the pytorch version on GPU for accelaration.

Installation and Dependencies

To install the experiment with pip, download the repository and run pip3 install . --user in the repository's root folder. Note: this package depends on NumPy, SciPy, and SciKit Learn. The examples also depend on Bokeh for plotting.

The Experiments

The three experiments in our manuscript are in bayesiancoresets/examples/riemann_gaussian/ (Synthetic Gaussian posterior inference), bayesiancoresets/examples/riemann_linear_regression/ (Bayesian Radial Basis Function Regression), and bayesiancoresets/examples/riemann_logistic_poisson_regression/ (Bayesian logistic and Poisson regression), respectively. To run the experiments, simply run the run.sh under each directories.

About

Experimental code for 'Bayesian Coresets: An Optimization Perspective'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%