Description Format Input and Output Channels State Parameters Internals Methods Super class Active bindings Methods See Also Examples
Wraps a list
of mlr3::Learner
s into a PipeOp
.
Inherits the $param_set
s (and therefore $param_set$values
) from all
Learner
s it is constructed from.
R6Class
object inheriting from PipeOp
.
PipeOpMultiLearner
has one input channel named "input"
, taking a Task
specific to the Learner
type given to learner
during construction; both during training and prediction.
PipeOpMultiLearner
has one output channel named "output"
, producing NULL
during training
and a Multiplicity
of Predictions
during prediction; this subclass is specific to the Learner
type given to
learner
during construction.
The output during prediction is a Multiplicity
of
Predictions
on the input data, produced by the Learners
trained on the training input data.
The $state
is set to the $state
slot of the Learner
object. It is a named
list
with members:
of states for each separate Task
provided via the incoming Multiplicity
.\
Each element contains the following slots:
model
:: any
Model created by the Learner
's $.train()
function.
train_log
:: data.table
with columns class
(character
), msg
(character
)
Errors logged during training.
train_time
:: numeric(1)
Training time, in seconds.
predict_log
:: NULL
| data.table
with columns class
(character
),
msg
(character
)
Errors logged during prediction.
predict_time
:: NULL
| numeric(1)
Prediction time, in seconds.
The parameters are exactly the parameters of the Learners
wrapped
by this object.
The $state
is currently not updated by prediction, so the $state$predict_log
and
$state$predict_time
will always be NULL
.
Methods inherited from PipeOp
.
mlr3pipelines::PipeOp
-> PipeOpMultiLearner
id
(character(1)
)
Access or set the id
.
learners
(list()
)
Access the stored learners.
learner_models
(list()
)
Access the trained learners.
predict_types
(list()
)
Access the predict_types.
new()
Initialize a new R6 class.
PipeOpMultiLearner$new(learners, id = NULL, param_vals = list())
learners
list()
List of Learner
| character(1)
, either:
One learner for each task_type
One learner for each target
, requires list to be named with the Task's target_names
.
id
character(1)
Identifier of the resulting object, internally defaulting to the combined ids
of the
Learner
being wrapped.
param_vals
named list
List of hyperparameter settings, overwriting the hyperparameter settings that would
otherwise be set during construction. Default list()
.
clone()
The objects of this class are cloneable with this method.
PipeOpMultiLearner$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other PipeOps:
mlr_pipeops_multioutsplit
,
mlr_pipeops_multioutunite
Other Multiplicity PipeOps:
mlr_pipeops_multioutsplit
,
mlr_pipeops_multioutunite
Other Experimental Features:
mlr_pipeops_multioutsplit
,
mlr_pipeops_multioutunite
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.