utility to check inits

未关闭
#967 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
cli

调研方向

首先跟踪命令行界面如何调用 stan::services 的方法,以及这些方法如何调用 stan::services::initialize。定义一个直接调用 initialize、报告所提供初始值并报告在约束条件下选定的有效值的实用工具;当无需运行推断即可诊断初始化时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Feature user experience
Summary:

Conceptually, the model fitting process consists of 3 steps:

  1. compile the Stan program to a C++ executable via a call to GNU-make
  2. (instantiate the model with the data)
  3. do inference

Steps 2 and 3 are conflated by the command-line interface. Allow the user to do step 2.
This would only be useful as a way to diagnose problems with initialization, as we don't provide a way to serialize the instantiated model; it would solve the perennial problem of bad data init files; it would allow the user to see what the initial parameter values are.

Description:

The command line interface conflates steps 2 and 3 because it is a very lightweight wrapper which determines which of the stan::services methods to call, and all of the stan::services methods then in turn call function stan::services::initialize as part of doing inference.

Add a method or utility that calls initialize directly. As part of this, report initial parameter values supplied and if the parameters can be initialized given inits and constraints, report the set of valid initial values chosen (possibly at random).

Additional Information:

most recent discussion here: https://discourse.mc-stan.org/t/saving-reusing-adaptation-in-cmdstanr/19166/45

user ran into problems, couldn't figure out why intializing parameters wasn't working as expected.

Current Version:

v2.25.0

主要语言
C++
星标
240
派生
105
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stan-dev/cmdstan 的其他 Issue

查看 stan-dev/cmdstan 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。