A wrapper around any learner that generates cross-validate predictions

Format

R6Class object.

Value

Learner object with methods for training and prediction. See Lrnr_base for documentation on learners.

Parameters

learner

The learner to wrap

folds=NULL

An origami folds object. If NULL, folds from the task are used

full_fit=FALSE

If TRUE, also fit the underlying learner on the full data. This can then be accessed with predict_fold(task, fold_number="full")