An S4 class representing a learner.
The object consists of 8 slots
Constructor for the S4 Learner object.
Constructor for the S4 Learner object.
Usage
# S4 method for missing
Learner(
tuner = Tuner(),
trainer,
forecaster,
scorer = Scorer(id = "mse"),
selector,
recorder,
marker,
logger = Logger()
)
# S4 method for character
Learner(
id,
tuning = "grid.search",
screening,
sampling = c("cv", "random", "bootstrap"),
strata = NULL,
balance = FALSE,
k = 10L,
score = "mse",
resp.type,
looper = Looper(),
logger = Logger()
)
is.Learner(object)Arguments
- tuner
a Tuner object
- trainer
a Trainer object
- forecaster
a Forecaster object
- scorer
a ScorerList or a Scorer object
- selector
a Selector object
- recorder
a Recorder object
- marker
a Marker object
- logger
a Logger
- id
learning method
- tuning
the tuning method
- screening
the screening method
- sampling
the sampling strategy
- strata
(optional) vector of stratification variables. If provided must be of length
N- balance
logical, whether to (try to) balance the strata frequency in the output sample. Used only if
stratais provided whenmethod = "random"ormethod = "bootstrap"- k
the number of folds for
method = "cv", or the number of repeats formethod = "random"andmethod = "bootstrap"- score
the accuracy measure to use during tuning
- resp.type
the response type
- looper
a Looper
Slots
tunera Tuner object
trainera Trainer object
forecastera Forecaster object
scorera ScorerList object
selectora Selector object
recordera Recorder object
markera Marker object
loggera Logger object