Get underlying R model of learner integrated into mlr.
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 fromHomogeneousEnsemble
. In these cases, thelearner.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 isFALSE
.
Value
(any). A fitted model, depending the learner / wrapped package. E.g., a model of class rpart::rpart for learner “classif.rpart”.