You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parallel vignette shows how one can get reproducible parallel RNG streams in principle. However, this is not very convenient. It would be nice to have an analogue function for clusterSetRNGStream, e.g.:
dqclusterSetRNGStream<-function(cl=NULL, iseed=NULL) {
if (is.null(cl))
cl<-parallel::getDefaultCluster()
if (is.null(iseed))
iseed<-dqrng::generateSeedVectors(1L)[[1L]]
invisible(parallel::clusterApply(cl,
seq_along(cl),
function(seed, stream) {
dqrng::dqset.seed(seed, stream)},
seed=iseed))
}
The parallel vignette shows how one can get reproducible parallel RNG streams in principle. However, this is not very convenient. It would be nice to have an analogue function for
clusterSetRNGStream
, e.g.:dqrng::generateSeedVectors
. Instead, the random seed could be taken from dqrng's RNG.The text was updated successfully, but these errors were encountered: