srlrn {mlr3mbo} | R Documentation |
Syntactic Sugar Surrogate Construction
Description
This function allows to construct a SurrogateLearner or SurrogateLearnerCollection in the spirit
of mlr_sugar
from mlr3.
If the archive
references more than one target variable or cols_y
contains more than one
target variable but only a single learner
is specified, this learner is replicated as many
times as needed to build the SurrogateLearnerCollection.
Usage
srlrn(
learner,
input_trafo = NULL,
output_trafo = NULL,
archive = NULL,
cols_x = NULL,
cols_y = NULL,
...
)
Arguments
learner |
(mlr3::LearnerRegr | List of mlr3::LearnerRegr) |
input_trafo |
( |
output_trafo |
( |
archive |
( |
cols_x |
( |
cols_y |
( |
... |
(named |
Value
SurrogateLearner | SurrogateLearnerCollection
Examples
library(mlr3)
srlrn(lrn("regr.featureless"), catch_errors = FALSE)
srlrn(list(lrn("regr.featureless"), lrn("regr.featureless")))