Learner helpers

delayed_make_learner(learner_class, ...)

learner_train(learner, task, trained_sublearners)

delayed_learner_train(learner, task, name = NULL)

learner_fit_predict(learner_fit, task = NULL)

delayed_learner_fit_predict(learner_fit, task = NULL)

learner_fit_chain(learner_fit, task = NULL)

delayed_learner_fit_chain(learner_fit, task = NULL)

learner_subset_covariates(learner, task)

learner_process_formula(learner, task)

delayed_learner_subset_covariates(learner, task)

delayed_learner_process_formula(learner, task)

Arguments

learner_class

The learner class to instantiate.

...

Parameters with which to instantiate the learner.

learner

A learner object to fit to the task.

task

The task on which to fit.

trained_sublearners

Any data obtained from a train_sublearners step.

name

a more detailed name for this delayed task, if necessary

learner_fit

a learner object that has already been fit