srlrn | R Documentation |
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.
srlrn(learner, archive = NULL, cols_x = NULL, cols_y = NULL, ...)
learner |
(mlr3::LearnerRegr | List of mlr3::LearnerRegr) |
archive |
( |
cols_x |
( |
cols_y |
( |
... |
(named |
SurrogateLearner | SurrogateLearnerCollection
library(mlr3)
srlrn(lrn("regr.featureless"), catch_errors = FALSE)
srlrn(list(lrn("regr.featureless"), lrn("regr.featureless")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.