BayesPy is an open-source Python software package for performing variational Bayesian inference. It is based on the variational message passing framework and supports conjugate exponential family models. By removing the tedious task of implementing the variational Bayesian update equations, the user can construct models faster and in a less error-prone way. Simple syntax, flexible model construction and efficient inference make BayesPy suitable for both average and expert Bayesian users. It also supports some advanced methods such as stochastic and collapsed variational inference.
几十年来,贝叶斯模型平均(Bayesian Model Averaging,BMA)一直是一个流行的框架,用于系统地解释在多个竞争模型可用于描述相同或相似物理过程的情况下出现的模型不确定性。然而,这一框架的实施带来了许多实际挑战,包括通过马尔可夫链蒙特卡罗和数值积分的后验近似。我们提出了一个变分贝叶斯推断方法BMA作为一个可行的替代标准的解决方案,避免了许多上述的陷阱。所提出的方法是“黑盒”,在这个意义上,它可以很容易地应用到许多模型,很少或没有模型特定的推导。我们说明了我们的变分方法的一套例子的效用,并讨论了所有必要的实施细节。还提供了完整的Python代码和所有示例。
Bayesian neural networks via MCMC: a Python-based tutorial
School of Mathematics and Statistics, UNSW Sydney(新南威尔士大学悉尼分校数学与统计学院);Pingala Institute of Artificial Intelligence(平加拉人工智能研究院);University of Sydney(悉尼大学)