Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

easy way to limit sampling to a maximum time duration

未关闭
#474 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
r
领域
api

调研方向

首先阅读 cmdstanr 的 sampling API,并将其行为与 issue 中提到的 R.utils withTimeout 替代方案进行比较。将完成定义为:允许配置最大的 sampling 时长,在达到限制时将本次运行记录为失败,并允许处理下一个数据集;找到并更新相关的 sampling 测试。

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

描述

feature

Is your feature request related to a problem? Please describe.
I have a model that often runs in a reasonable amount of time, but occasionally, when faced with unpleasant data, will continue to sample for 4+ hours. Rather than wait, I'd prefer just to record the failure and move on to the next dataset.

Describe the solution you'd like
I'd like to be able to bound the maximum time duration for sampling.

Describe alternatives you've considered
Maybe there is some R package that wrap cmdstanr's sampling API and offer this functionality? Oh, hm, I found withTimeout in the R.utils package.

主要语言
R
星标
160
派生
69
平均合并
18 小时 34 分钟
30 天内合并 PR
28

环境准备

从这里开始

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

stan-dev/cmdstanr 的其他 Issue

查看 stan-dev/cmdstanr 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

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