View source: R/050_ExecutionConfig.R
| setup_MiraiExecution | R Documentation |
MiraiExecutionConfigParallel execution through mirai. Takes no plan: mirai has no
equivalent of a future_plan, which is why it is not an argument here.
setup_MiraiExecution(
n_workers = NULL,
n_workers_outer = NULL,
n_workers_tuning = NULL,
n_workers_algorithm = NULL,
device = NULL,
on_error = c("continue", "stop", "stop_outer"),
seed = NULL,
shared_memory = c("auto", "none", "always"),
warm_workers = TRUE
)
n_workers |
Integer [1, Inf): Number of parallel workers. Left |
n_workers_outer |
Optional Integer [1, Inf): Workers for outer resampling, overriding the automatic assignment. |
n_workers_tuning |
Optional Integer [1, Inf): Workers for tuning, overriding the automatic assignment. |
n_workers_algorithm |
Optional Integer [1, Inf): Threads for a self-parallelizing algorithm, overriding the automatic assignment. |
device |
Optional |
on_error |
Character {"continue", "stop", "stop_outer"}: Failure policy.
|
seed |
Optional Integer [0, Inf): Master seed for the run's computation RNG,
from which one independent substream per parallel task is derived. Left |
shared_memory |
Character {"none", "auto", "always"}: Whether to hand workers
the training data through OS shared memory instead of serializing a copy to each.
|
warm_workers |
Logical: Load rtemis in every worker as the pool is built, rather than leaving each worker to load it on its first task. Either way the result is the same; TRUE records the loading time in the run's worker-pool setup step. |
See setup_FutureExecution for how the three worker levels are assigned and how the run's seed is resolved; both are identical under either backend.
MiraiExecutionConfig object.
EDG
setup_MiraiExecution(n_workers = 2L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.