Skip to content

geopapa11/adabp

Repository files navigation

adabp

The Adaptive Belief Propagation (BP) algorithm.

This is research code and builds on the following paper (please cite appropriately):

  • Georgios Papachristoudis, John W. Fisher III. Adaptive Belief Propagation, ICML 2015.

bibtex:
@inproceedings{ Geopapa2015adabp,
author = {Papachristoudis, Georgios and Fisher III, John W.},
booktitle = {International Conference on Machine Learning (ICML)},
month = {July},
title = {{Adaptive Belief Propagation}},
url = {http://jmlr.org/proceedings/papers/v37/papachristoudis15.pdf},
year = {2015}
}

Getting Started

Clone this repository:

git clone https://github.com/geopapa11/adabp

Add the rctreebp folder to the MATLAB path:

addpath('rctreebp/');

(or you can just go to MATLAB GUI -> Home panel, choose "Set Path" -> "Add Folder" and choose the "rctreebp" folder)

Main functions

  • AdaBP.m: Adaptive BP algorithm.
    • Support for discrete forest MRFs.
    • Support for Gaussian forest MRFs.
    • Support for max-product.

Reproduce paper figures

  • If you wish to reproduce Figures 2 and 3 of the ICML paper, please open adabp_toy.m and read the help documentation for further instructions.
  • If you wish to reproduce Figure 4 of the ICML paper, please open cpg_toy.m and read the help documentation for further instructions.
  • If you wish to reproduce Figure 5 of the ICML paper, please open berk_toy.m and read the help documentation for further instructions.
  • If you wish to run a toy example of an application of AdaBP to Gaussian loopy graphs, please type the command
    [mu1, var1, mu2, var2] = adabp_loopy_toy();

Comments

It has been noted that RCTreeBP by [Sumer et al., 2011] might crash in Matlab 2014 and above. So, please keep this in mind, when you run the code. If you wish to see the performance of AdaBP alone, you can comment the lines that are related to RCTreeBP in adabp_toy.m and cpg_toy.m

Tested on Linux, Mac and Windows

Author

Giorgos Papachristoudis (geopapa)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published