We present the GPry algorithm for fast Bayesian inference of general (non-Gaussian) posteriors with a moderate number of parameters. GPry does not need any pre-training, special hardware such as GPUs, and is intended as a drop-in replacement for traditional Monte Carlo methods for Bayesian inference. Our algorithm is based on generating a Gaussian Process surrogate model of the log-posterior, aided by a Support Vector Machine classifier that excludes extreme or non-finite values. An active learning scheme allows us to reduce the number of required posterior evaluations by two orders of magnitude compared to traditional Monte Carlo inference. Our algorithm allows for parallel evaluations of the posterior at optimal locations, further reducing wall-clock times. We significantly improve performance using properties of the posterior in our active learning scheme and for the definition of the GP prior. In particular we account for the expected dynamical range of the posterior in different dimensionalities. We test our model against a number of synthetic and cosmological examples. GPry outperforms traditional Monte Carlo methods when the evaluation time of the likelihood (or the calculation of theoretical observables) is of the order of seconds; for evaluation times of over a minute it can perform inference in days that would take months using traditional methods. GPry is distributed as an open source Python package (pip install gpry) and can also be found at https://github.com/jonaselgammal/GPry.
翻译:我们为贝叶西亚快速推算一般(非加西南)子宫(非加西南)外表提供GPry算法,其参数数目不多。GPry不需要任何预培训前和特殊硬件,例如GPUs,而是用来取代传统的蒙特卡洛方法,用于巴伊西亚推断。我们的算法基于生成一个加奥西亚进程代谢模型,该模型以一个将极端或非无限值排除在外的支持矢量机器分类器为辅助。一个积极的学习计划使我们可以减少所要求的事后评估的数量,比传统的MonteCarlo推论少两个数量级。我们的算法允许在最佳地点平行评估远地点,进一步缩短倒时钟时间。我们大大改进了在现行学习计划中利用远地点的外表属性以及以前GPOP的定义的性能。我们特别考虑到在不同的维度中预期的远端/远端值的动态范围。我们用一些合成和宇宙化实例来测试我们的模型。GPryry 超越了Merobral 数月中传统的Meal方法,在进行一次的模拟评估时可以进行。