storing superchain_ids for rhat_nested

Aperta
#450 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
r
Ambito
data

Direzione di ricerca

Inizia leggendo rhat_nested e summarise_draws per capire come vengono attualmente passati i superchain_ids. L'issue richiede di decidere se aggiungere una funzione add_superchain_ids, memorizzare i valori come attributo e fare in modo che summarise_draws li utilizzi automaticamente. Il lavoro sarà considerato completato quando l'API e il comportamento automatico saranno concordati e implementati in modo coerente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
R
Stelle
172
Fork
27
Merge medio
5g 12h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stan-dev/posterior

Tutte le issue di stan-dev/posterior

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.