Skip to main content

Variational Bayesian inference tools for Python

Project description

BayesPy provides tools for Bayesian inference with Python. The user constructs a model as a Bayesian network, observes data and runs posterior inference. The goal is to provide a tool which is efficient, flexible and extendable enough for expert use but also accessible for more casual users.

Currently, only variational Bayesian inference for conjugate-exponential family (variational message passing) has been implemented. Future work includes variational approximations for other types of distributions and possibly other approximate inference methods such as expectation propagation, Laplace approximations, Markov chain Monte Carlo (MCMC) and other methods. Contributions are welcome.

Project information

Copyright (C) 2011-2017 Jaakko Luttinen and other contributors (see below)

BayesPy including the documentation is licensed under the MIT License. See LICENSE file for a text of the license or visit

Latest release

release conda-release



Bug reports


Jaakko Luttinen



Mailing list

Continuous integration


Test status

Test coverage


master (stable)




develop (latest)




Similar projects

VIBES ( allows variational inference to be performed automatically on a Bayesian network. It is implemented in Java and released under revised BSD license.

Bayes Blocks ( is a C++/Python implementation of the variational building block framework. The framework allows easy learning of a wide variety of models using variational Bayesian learning. It is available as free software under the GNU General Public License.

Infer.NET ( is a .NET framework for machine learning. It provides message-passing algorithms and statistical routines for performing Bayesian inference. It is partly closed source and licensed for non-commercial use only.

PyMC ( provides MCMC methods in Python. It is released under the Academic Free License.

OpenBUGS ( is a software package for performing Bayesian inference using Gibbs sampling. It is released under the GNU General Public License.

Dimple ( provides Gibbs sampling, belief propagation and a few other inference algorithms for Matlab and Java. It is released under the Apache License.

Stan ( provides inference using MCMC with an interface for R and Python. It is released under the New BSD License.

PBNT - Python Bayesian Network Toolbox ( is Bayesian network library in Python supporting static networks with discrete variables. There was no information about the license.


The list of contributors:

  • Jaakko Luttinen

  • Hannu Hartikainen

  • Deebul Nair

  • Christopher Cramer

  • Till Hoffmann

Each file or the git log can be used for more detailed information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bayespy-0.6.1.tar.gz (402.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page