File: getLearnerModel.Rd

package info (click to toggle)
r-cran-mlr 2.19.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,264 kB
  • sloc: ansic: 65; sh: 13; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/WrappedModel.R
\name{getLearnerModel}
\alias{getLearnerModel}
\title{Get underlying R model of learner integrated into mlr.}
\usage{
getLearnerModel(model, more.unwrap = FALSE)
}
\arguments{
\item{model}{(\link{WrappedModel})\cr
The model, returned by e.g., \link{train}.}

\item{more.unwrap}{(\code{logical(1)})\cr
Some learners are not basic learners from R, but implemented in mlr as meta-techniques.
Examples are everything that inherits from \code{HomogeneousEnsemble}.
In these cases, the \code{learner.model} is often a list of mlr \link{WrappedModel}s.
This option allows to strip them further to basic R models.
The option is simply ignored for basic learner models.
Default is \code{FALSE}.}
}
\value{
(any). A fitted model, depending the learner / wrapped package. E.g., a
model of class \link[rpart:rpart]{rpart::rpart} for learner \dQuote{classif.rpart}.
}
\description{
Get underlying R model of learner integrated into mlr.
}