Background/asynchronous sampling (feature request & design discussion)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia individuando i vari metodi run e verificando come vengono avviati e sottoposti a polling i processi processx. Leggi prima la discussione collegata su processx e ps; il design sarà completo solo quando le catene in background, lo stato persistente dei processi e il polling dell’output basato su file funzioneranno anche dopo un crash della sessione R in primo piano.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I propose modification of the various run methods to enable doing so in the background rather than occupying the foreground R session. This is useful for scenarios where one wants to do other things without launching a new session, as well as to make runs robust to crashes of the foreground R session.
To achieve this, I propose separating out the initiation and polling of the processx processes.
To enable continued running amidst crashes of the foreground R session, I propose starting the processes with cleanup=FALSE and saving the PID in an RDS file so that ps can be used to resume management of the process. This also requires that files be used for stdout and stderr (rather than the processx default of using pollable pipes back to the R session) so that monitoring progress can resume by simply checking these files. This latter in turn calls for a change in the cmdstanr approach to polling from using the build-in processx polling to polling based on checking/parsing the stdout/stderr files (using mod time or filesize to inform whether to bother looking for newlines).
While not necessary for the above, I propose storing these files in a folder called stan_scratch (whose default-but-configurable location is the current working dir). (n.b. said folder is involved in the proposed implementations of these FRs as well: During-sampling diagnostics, Recompile only on changes to output of stanc3 auto-formatter )
Similarly, I propose starting a separate process for each chain (in parallel if parallel chains are requested). (I'm pretty sure that's what cmdstanr does already, but wanted to be explicit here)
- Lingua principale
- R
- Stelle
- 160
- Fork
- 69
- Merge medio
- 16h 59m
- PR unite (30g)
- 25
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stan-dev/cmdstanr
-
Compiled model methods and `expose_functions` fail to load when RcppParallel's TBB is already in the sessionForse già presa @jgabry l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
stan-dev/cmdstanr#1270 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
stan-dev/cmdstanr#506 · 6 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Let fits compress their own output CSVsForse già presa @VisruthSK l’ha presa 2 giorni fa. Apertafeature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
stan-dev/cmdstanr#1276 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
`cmdstan_version_compare()` conflates no version with old versionForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stan-dev/cmdstanr
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
api-sync
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sportsdataverse/hoopR#220 ·
-
Honest R dependency policyApertacompat
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
mlr-org/batchtools#332 · 3 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Open-Systems-Pharmacology/OSPSuite.ParameterIdentification#315 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno