setup_parallel_tmle: Setup TMLE to run in parallel

View source: R/setup_parallel_tmle.R

setup_parallel_tmleR Documentation

Setup TMLE to run in parallel

Description

Starts a cluster and sets up TMLE and SuperLearner to use the cluster so that TMLE is conducted in parallel rather than using only one core.

Usage

setup_parallel_tmle(
  parallel = "multicore",
  max_cores = NULL,
  allow_multinode = TRUE,
  env = .GlobalEnv
)

Arguments

parallel

"multicore", "doParallel", or "doSNOW"

max_cores

Restrict how many many cores will be used on a machine, rather than using all available cores. Useful if each core needs to use a substantial amount of memory.

allow_multinode

If T, will create a multinode cluster if it finds multiple machines listed in the "SLURM_NODELIST" environmental variable. If F, it will only use the current node even if multiple nodes are detected.

env

Environment in which to save the functions, defaulting to the global environment. Set to NULL to disable.

See Also

parallelize, tmle_parallel, gen_superlearner


ck37/ckTools documentation built on April 29, 2023, 11:47 p.m.