Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Bayesian Python: Bayesian inference tools for Python
branch: master


BayesPy - Bayesian Python

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-2015 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

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

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

Something went wrong with that request. Please try again.