Cobaya:分层物理模型的贝叶斯分析代码
Cobaya: Code for Bayesian Analysis of hierarchical physical models
摘要:
我们提出了Cobaya,一个通用的贝叶斯分析代码,针对复杂的内部相互依赖的模型。无需用户编写特定的代码,模型管道不同阶段之间的相互依赖性就可以提高采样效率:中间结果自动缓存,参数根据其依赖性分组并进行最佳排序,同时考虑其各自的计算成本,从而最大限度地减少采样期间的变化成本,这要归功于一种新颖的算法。Cobaya允许使用一系列Monte Carlo采样器探索后验,并且还具有使用新的先验和似然对Monte Carlo样本进行最大化和重要性重新加权的功能。Cobaya是用Python以模块化的方式编写的,允许扩展性,使用外部包提供的计算,以及动态重新参数化而无需修改其源代码。它可以利用混合的OpenMP/MPI并行化,并且每次后验评估的开销为亚毫秒。虽然Cobaya是一个通用的统计框架,但它包括一组宇宙学玻尔兹曼码和似然性的接口(后者对于前者的选择是不可知的),以及外部依赖的自动安装程序。
英文摘要:
We present Cobaya, a general-purpose Bayesian analysis code aimed at models with complex internal interdependencies. Without the need for specific code by the user, interdependencies between different stages of a model pipeline are exploited for sampling efficiency: intermediate results are automatically cached, and parameters are grouped in blocks according to their dependencies and optimally sorted, taking into account their individual computational costs, so as to minimize the cost of their variation during sampling, thanks to a novel algorithm. Cobaya allows exploration of posteriors using a range of Monte Carlo samplers, and also has functions for maximization and importance-reweighting of Monte Carlo samples with new priors and likelihoods. Cobaya is written in Python in a modular way that allows for extendability, use of calculations provided by external packages, and dynamical reparameterization without modifying its source. It can exploit hybrid OpenMP/MPI parallelization, and has sub-millisecond overhead per posterior evaluation. Though Cobaya is a general purpose statistical framework, it includes interfaces to a set of cosmological Boltzmann codes and likelihoods (the latter being agnostic with respect to the choice of the former), and automatic installers for external dependencies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。