PyVBMC is a Python implementation of the Variational Bayesian Monte Carlo (VBMC) algorithm for posterior and model inference for black-box computational models (Acerbi, 2018, 2020). VBMC is an approximate inference method designed for efficient parameter estimation and model assessment when model evaluations are mildly-to-very expensive (e.g., a second or more) and/or noisy. Specifically, VBMC computes: - a flexible (non-Gaussian) approximate posterior distribution of the model parameters, from which statistics and posterior samples can be easily extracted; - an approximation of the model evidence or marginal likelihood, a metric used for Bayesian model selection. PyVBMC can be applied to any computational or statistical model with up to roughly 10-15 continuous parameters, with the only requirement that the user can provide a Python function that computes the target log likelihood of the model, or an approximation thereof (e.g., an estimate of the likelihood obtained via simulation or Monte Carlo methods). PyVBMC is particularly effective when the model takes more than about a second per evaluation, with dramatic speed-ups of 1-2 orders of magnitude when compared to traditional approximate inference methods. Extensive benchmarks on both artificial test problems and a large number of real models from the computational sciences, particularly computational and cognitive neuroscience, show that VBMC generally - and often vastly - outperforms alternative methods for sample-efficient Bayesian inference, and is applicable to both exact and simulator-based models (Acerbi, 2018, 2019, 2020). PyVBMC brings this state-of-the-art inference algorithm to Python, along with an easy-to-use Pythonic interface for running the algorithm and manipulating and visualizing its results.
翻译:PyVBMC是黑盒计算模型(Acerbi, 2018, 2020年)。VBMC是用于高效参数估计和模型评估的近似推推推法,而模型评估则略为昂贵(例如第二次或第二次以上)和(或)吵闹。具体地说,VBMC计算: - 一种(非Gather-Gausian)接近模型参数的远端分布,从中可以很容易地提取统计数据和远端样本; - 一种模型证据或边缘可能性的近似推算法,一种用于选择Bayesian模型。 PyVBMC可用于任何计算模型或统计模型,其大约为10-15个连续参数,而唯一要求用户能够提供一种Python函数,用以比较模型的目标日志概率,或基于该模型的近距离(例如,通过模拟或蒙特卡洛方法获得的远端的远端图像分布; PyVBMBC 通常能够比较模型或最短的直径直径的直径的直径直径直径直径直径直径直径测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测算法。在模型测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测测算法中,这两次测测测测测测测测测测算方法中,其测算法方法比比测算法方法比比测算法更有效。</s>