Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

easy way to limit sampling to a maximum time duration

オープン
#474 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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
スター
164
フォーク
69
平均マージ
1日 10時間
マージ済み PR(30日)
47

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stan-dev/cmdstanr のほかの issue

stan-dev/cmdstanr の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。