trainLearner {mlr} | R Documentation |
Train an R learner.
Description
Mainly for internal use. Trains a wrapped learner on a given training set. You have to implement this method if you want to add another learner to this package.
Usage
trainLearner(.learner, .task, .subset, .weights = NULL, ...)
Arguments
.learner |
(RLearner) |
.task |
(Task) |
.subset |
(integer) |
.weights |
(numeric) |
... |
(any) |
Details
Your implementation must adhere to the following:
The model must be fitted on the subset of .task
given by .subset
. All parameters
in ...
must be passed to the underlying training function.
Value
(any). Model of the underlying learner.
[Package mlr version 2.19.2 Index]