bplapply() et al. returns RngFutureError:s rather than signals them
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- r
- Ambito
- distributed-systems
Direzione di ricerca
Inizia riproducendo l'esempio con bplapply(), FutureParam() e future.rng.onMisuse impostato su "error" o "warning". Traccia il modo in cui vengono gestiti RngFutureError e RngFutureWarning, quindi verifica che gli errori vengano segnalati, gli avvisi emessi e i messaggi attesi esistenti preservati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
library(BiocParallel.FutureParam)
register(FutureParam())
options(future.rng.onMisuse = "error")
y <- bplapply(1:2, rnorm)
> str(y)
List of 2
$ :List of 2
..$ message: chr "UNRELIABLE VALUE: Future ('<none>') unexpectedly generated random numbers without specifying argument 'seed'. T"| __truncated__
..$ call : NULL
..- attr(*, "class")= chr [1:6] "RngFutureError" "FutureError" "error" "RngFutureCondition" ...
..- attr(*, "future")=Classes 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' <environment: 0x56148257c1b0>
$ :List of 2
..$ message: chr "UNRELIABLE VALUE: Future ('<none>') unexpectedly generated random numbers without specifying argument 'seed'. T"| __truncated__
..$ call : NULL
..- attr(*, "class")= chr [1:6] "RngFutureError" "FutureError" "error" "RngFutureCondition" ...
..- attr(*, "future")=Classes 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' <environment: 0x56148279f320>
The expected behavior should be:
y <- bplapply(1:2, rnorm)
Error: UNRELIABLE VALUE: Future ('<none>') unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
Similarly, with RngFutureWarning:s, we would expect:
library(BiocParallel.FutureParam)
register(FutureParam())
options(future.rng.onMisuse = "warning") # default
y <- bplapply(1:2, rnorm)
Warning: UNRELIABLE VALUE: Future ('<none>') unexpectedly generated random numbers without specifying argument 'seed'. There is a risk that those random numbers are not statistically sound and the overall results might be invalid. To fix this, specify 'seed=TRUE'. This ensures that proper, parallel-safe random numbers are produced via the L'Ecuyer-CMRG method. To disable this check, use 'seed=NULL', or set option 'future.rng.onMisuse' to "ignore".
but right now those warnings are muffled and never signaled.
- Lingua principale
- Makefile
- Stelle
- 7
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
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 futureverse/BiocParallel.FutureParam
-
nested remote BiocparallelApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
futureverse/BiocParallel.FutureParam#1 · 2 commenti ·
Tutte le issue di futureverse/BiocParallel.FutureParam
Issue simili
-
area/actorsystem bug tsan
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ydb-platform/ydb#54282 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
HarperFast/harper-pro#926 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
check_program_status() ignores errors on ranks other than 0, and calls Abort() with errorcode 0Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
NCAR/WrfHydroForcing#132 ·
-
bug P2 reliability workers
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
afreidah/s3-orchestrator#1563 ·
I maintainer di solito rispondono entro 1 giorno