dot-get_predictions: Worker function for fitting prediction functions (possibly in...

Description Usage Arguments Value

Description

Worker function for fitting prediction functions (possibly in parallel)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
.get_predictions(
  learner,
  Y,
  X,
  K = 10,
  folds,
  parallel,
  nested_cv = FALSE,
  nested_K = K - 1
)

Arguments

learner

The wrapper to use

Y

The outcome

X

The predictors

K

The number of folds

folds

Vector of CV fold assignments

parallel

Whether to compute things in parallel using future

nested_cv

Is nested CV being used?

nested_K

How many folds of nested CV?

Value

A list of the result of the wrapper executed in each fold


nlpred documentation built on Feb. 24, 2020, 1:11 a.m.