A simple LearnerRegr which only analyzes the response during train, ignoring all features.
If hyperparameter robust
is FALSE
(default), constantly predicts mean(y)
as response
and sd(y)
as standard error.
If robust
is TRUE
, median()
and mad()
are used instead of mean()
and sd()
,
respectively.
For weighted data, the response is the weighted mean (weighted median for robust regression). The predicted standard error is the square root of the weighted variance estimator with bias correction based on effective degrees of freedom:
sd(y, weights) = sqrt(
sum(weights * (y - weighted.mean(y, weights))^2) /
(sum(weights) - sum(weights ^2) / sum(weights))
)
If robust
is TRUE
, the weighted median absolute deviation is used, adjusted by a factor of 1.4826
for consistency with mad()
.
Dictionary
This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn()
:
Meta Information
Task type: “regr”
Predict Types: “response”, “se”, “quantiles”
Feature Types: “logical”, “integer”, “numeric”, “character”, “factor”, “ordered”, “POSIXct”, “Date”
Required Packages: mlr3, 'stats'
See also
Chapter in the mlr3book: https://mlr3book.mlr-org.com/chapters/chapter2/data_and_basic_modeling.html#sec-learners
Package mlr3learners for a solid collection of essential learners.
Package mlr3extralearners for more learners.
as.data.table(mlr_learners)
for a table of available Learners in the running session (depending on the loaded packages).mlr3pipelines to combine learners with pre- and postprocessing steps.
Package mlr3viz for some generic visualizations.
Extension packages for additional task types:
mlr3proba for probabilistic supervised regression and survival analysis.
mlr3cluster for unsupervised clustering.
mlr3tuning for tuning of hyperparameters, mlr3tuningspaces for established default tuning spaces.
Other Learner:
Learner
,
LearnerClassif
,
LearnerRegr
,
mlr_learners
,
mlr_learners_classif.debug
,
mlr_learners_classif.featureless
,
mlr_learners_classif.rpart
,
mlr_learners_regr.debug
,
mlr_learners_regr.rpart
Super classes
mlr3::Learner
-> mlr3::LearnerRegr
-> LearnerRegrFeatureless