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

Description Usage Arguments Value

View source: R/WrappedModel.R

Description

Get underlying R model of learner integrated into mlr.

Usage

1
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 for learner “classif.rpart”.


guillermozbta/s2 documentation built on May 17, 2019, 4:01 p.m.