mlr3 (version 0.1.4)

LearnerRegr: Regression Learner

Description

This Learner specializes Learner for regression problems.

Many predefined learners can be found in the mlr3misc::Dictionary mlr_learners after loading the mlr3learners package.

Arguments

Format

R6::R6Class object inheriting from Learner.

Construction

l = LearnerRegr$new(id, param_set = ParamSet$new(), predict_types = character(), feature_types = character(),
    properties = character(), data_formats = "data.table", packages = character(), man = NA_character_)

For a description of the arguments, see Learner. task_type is set to "regr".

Possible values for predict_types are passed to and converted by PredictionRegr:

  • "response": Predicts a numeric response for each observation in the test set.

  • "se": Predicts the standard error for each value of response for each observation in the test set.

Fields

See Learner.

Methods

See Learner.

See Also

Example regression learners: regr.rpart

Other Learner: LearnerClassif, Learner, mlr_learners

Examples

Run this code
# NOT RUN {
# get all regression learners from mlr_learners:
lrns = mlr_learners$mget(mlr_learners$keys("^regr"))
names(lrns)

# get a specific learner from mlr_learners:
mlr_learners$get("regr.rpart")
lrn("classif.featureless")
# }

Run the code above in your browser using DataLab