gbaydin / pyprob

PyTorch-based library for probabilistic programming and inference compilation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyprob Build Status

pyprob is a PyTorch-based library for probabilistic programming and inference compilation.

Inference compilation is a technique for performing fast inference in generative models implemented as probabilistic programs, using deep neural networks to parameterize proposal distributions of a sequential importance sampling inference engine.

Installation

Prerequisites:

  • Python 3.5 or higher. We recommend Anaconda.
  • Latest PyTorch, installed by following instructions on the PyTorch web site.

Install from source

To use a cutting-edge version, clone this repository and install the pyprob package using:

git clone git@github.com:probprog/pyprob.git
cd pyprob
pip install .

Install using pip

To use the latest version available in Python Package Index, run:

pip install pyprob

Docker

A CUDA + PyTorch + pyprob image with the latest passing commit is automatically pushed to probprog/pyprob:latest

https://hub.docker.com/r/probprog/pyprob/

Usage

pyprob has two main modes of operation:

  • Probabilistic programming and inference compilation fully in Python
  • Interfacing with 3rd party probabilistic programming libraries (e.g., Anglican, CPProb) through a ZeroMQ/FlatBuffers-based protocol

Probabilistic programming in Python

NOTE: This is currently a work in progress, and the code in this public repository is under development. A website with documentation and examples will be provided in due course.

Information and citing

Our paper at AISTATS 2017 provides an in-depth description of the inference compilation technique.

If you use pyprob and/or would like to cite our paper, please use the following information:

@inproceedings{le-2016-inference,
  author = {Le, Tuan Anh and Baydin, Atılım Güneş and Wood, Frank},
  booktitle = {Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS)},
  title = {Inference Compilation and Universal Probabilistic Programming},
  year = {2017},
  volume = {54},
  pages = {1338--1348},
  series = {Proceedings of Machine Learning Research},
  address = {Fort Lauderdale, FL, USA},
  publisher = {PMLR}
}

License

pyprob is distributed under the MIT License.

Authors

pyprob has been developed by Tuan Anh Le and Atılım Güneş Baydin within the Probabilistic Programming Group at the University of Oxford, led by Frank Wood.

For the full list of contributors, see:

https://github.com/probprog/pyprob/graphs/contributors

About

PyTorch-based library for probabilistic programming and inference compilation


Languages

Language:Python 99.6%Language:Shell 0.4%