...
【24h】

Programming With Models: Writing Statistical Algorithms for General Model Structures With NIMBLE

机译:用模型进行编程:用灵活的一般模型结构写统计算法

获取原文
获取原文并翻译 | 示例
           

摘要

We describe NIMBLE, a system for programming statistical algorithms for general model structures within R. NIMBLE is designed to meet three challenges: flexible model specification, a language for programming algorithms that can use different models, and a balance between high-level programmability and execution efficiency. For model specification, NIMBLE extends the BUGS language and creates model objects, which can manipulate variables, calculate log probability values, generate simulations, and query the relationships among variables. For algorithm programming, NIMBLE provides functions that operate with model objects using two stages of evaluation. The first stage allows specialization of a function to a particular model and/or nodes, such as creating a Metropolis-Hastings sampler for a particular block of nodes. The second stage allows repeated execution of computations using the results of the first stage. To achieve efficient second-stage computation, NIMBLE compiles models and functions via C++, using the Eigen library for linear algebra, and provides the user with an interface to compiled objects. The NIMBLE language represents a compilable domain-specific language (DSL) embedded within R. This article provides an overview of the design and rationale for NIMBLE along with illustrative examples including importance sampling, Markov chain Monte Carlo (MCMC) and Monte Carlo expectation maximization (MCEM). Supplementary materials for this article are available online.
机译:我们描述了灵活性,一个用于r. nimble内的一般模型结构的编程统计算法的系统,旨在满足三个挑战:灵活的模型规范,可以使用不同模型的编程算法的语言,以及高级可编程性和执行之间的平衡效率。对于模型规范,NIMBEL扩展了错误语言并创建模型对象,可以操纵变量,计算日志概率值,生成模拟,并查询变量之间的关系。对于算法编程,灵活性提供了使用两个评估阶段与模型对象一起运行的功能。第一阶段允许专业化特定模型和/或节点的功能,例如为特定节点块创建Metropolis-Hastings采样器。第二阶段允许使用第一阶段的结果重复执行计算。为了实现高效的第二阶段计算,使用C ++使用CIGEN库进行线性代数来编译模型和函数,并为用户提供编译对象的接口。 Nimble语言代表嵌入在R内的可编译域的特定语言(DSL)。本文概述了灵活的设计和理由以及包括重要性采样,马尔可夫链蒙特卡罗(MCMC)和Monte Carlo期望最大化( MCEM)。本文的补充材料可在线获得。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号