gen_superlearner: Setup a SuperLearner() based on parallel configuration.

View source: R/gen_superlearner.R

gen_superlearnerR Documentation

Setup a SuperLearner() based on parallel configuration.

Description

Create custom SL and CV.SL functions that automatically use parallelization based on the provided configuration.

Usage

gen_superlearner(
  parallel = "multicore",
  cluster = NULL,
  outer_cv_folds = NULL,
  verbose = T
)

Arguments

parallel

Can be "multicore", "doSNOW"/"snow" or "seq"/NULL.

cluster

Optional cluster, e.g. from SNOW.

outer_cv_folds

How many folds to use for CV.SuperLearner

verbose

If TRUE will output additional details during execution.

Value

A list with a SL and CV.SL function.


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