CmdStanPy 是一个用于在 Python 中调用 Stan(概率编程语言)进行贝叶斯统计建模与推断的接口库。它通过运行 CmdStan(Stan 的命令行接口)来完成采样(MCMC)、变分推断(VI)与模型编译等工作。(在实际语境中也常被写作 cmdstanpy。)
I fit a Bayesian regression model using CmdStanPy.
我用 CmdStanPy 拟合了一个贝叶斯回归模型。
After compiling the Stan model with CmdStanPy, we ran four MCMC chains and checked convergence diagnostics before reporting the posterior estimates.
用 CmdStanPy 编译 Stan 模型后,我们运行了四条 MCMC 链并检查收敛诊断,然后才报告后验估计结果。
/ˌsiː.ɛmˈdiː.stæn.paɪ/
CmdStanPy 由两部分组成:CmdStan(“Command-line Stan”,即 Stan 的命令行版本)+ Py(Python 的常见缩写)。含义直观:“用 Python 驱动 CmdStan”。