storing superchain_ids for rhat_nested

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
r
領域
data

調査の方向性

まず rhat_nested と summarise_draws を読んで、現在 superchain_ids がどのように渡されているかを理解します。この issue では、add_superchain_ids 関数を追加するか、値を属性として保存するか、そして summarise_draws にそれらを自動的に使用させるかを決定する必要があります。API と自動動作について合意し、一貫して実装されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I have been working a bit with many short chains, and using nested R-hat as a convergence diagnostic. rhat_nested has an additional argument superchain_ids which is a vector specifying which superchain each chain belongs to. My current workflow is to add the superchain_ids as an attribute to a posterior::draws object, and then do something like

summarise_draws(draws, rhat_nested = ~rhat_nested(.x, superchain_ids = attr(draws, "superchain_ids"))

This is a bit cumbersome, and maybe it could be improved with:

  • a new function add_superchain_ids, which will then add the superchain_ids to the draws object (as an attribute?)
  • have summarise_draws automatically use the stored superchain_ids for rhat_nested

Any thoughts on this? I could make a PR if this seems reasonable

主要言語
R
スター
172
フォーク
27
平均マージ
5日 12時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

stan-dev/posterior のほかの issue

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

似ている issue

R の issue をもっと見る

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

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