getLearnerModel: Get underlying R model of learner integrated into mlr.

View source: R/WrappedModel.R

getLearnerModelR Documentation

Get underlying R model of learner integrated into mlr.

Description

Get underlying R model of learner integrated into mlr.

Usage

getLearnerModel(model, more.unwrap = FALSE)

Arguments

model

(WrappedModel)
The model, returned by e.g., train.

more.unwrap

(logical(1))
Some learners are not basic learners from R, but implemented in mlr as meta-techniques. Examples are everything that inherits from HomogeneousEnsemble. In these cases, the learner.model is often a list of mlr WrappedModels. This option allows to strip them further to basic R models. The option is simply ignored for basic learner models. Default is FALSE.

Value

(any). A fitted model, depending the learner / wrapped package. E.g., a model of class rpart::rpart for learner “classif.rpart”.


berndbischl/mlr documentation built on Aug. 15, 2024, 4:20 p.m.