Giter VIP home page Giter VIP logo

bayesian-coresets-optimization's Introduction

Bayesian Coresets Construction with Accelerated Iterative Hard Thresholding

This repository provides python implementation for constructing Bayesian coreset using accelerated iterative hard thresholding (A-IHT).

Corresponding paper: Bayesian Coresets: Revisiting the Optimization Perspective. Jacky Y. Zhang, Rajiv Khanna, Anastasios Kyrillidis, and Oluwasanmi Koyejo. (AISTATS 2021)

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

Contents

  1. IHT Toolbox
  2. Experiments

IHT Toolbox

Three implementations of the A-IHT are provided in IHT_toolbox/accelerated_iht.py, and can be applied directly. Specifically,

  1. A-IHT I implemented with numpy
  2. A-IHT II implemented with numpy
  3. A-IHT II implemented with pytorch
    For large-scale problems, use the pytorch version on GPU for acceleration.

Experiments

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

Installation and Dependencies

To install the experiment with pip, download the repository and run pip3 install . --user in the experiments/ folder. The experiments depend on NumPy, SciPy, and SciKit Learn. The examples also depend on Bokeh and cairosvg for plotting.

Reference

The experiments are built on the framework of Trevor Campbell, etc.'s repository (commit a7d97b7 on Nov 27, 2019).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.