mlr_learners_regr.rpart | R Documentation |
A LearnerRegr for a regression tree implemented in rpart::rpart()
in package rpart.
Parameter xval
is initialized to 0 in order to save some computation time.
Parameter model
has been renamed to keep_model
.
This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn()
:
mlr_learners$get("regr.rpart") lrn("regr.rpart")
Task type: “regr”
Predict Types: “response”
Feature Types: “logical”, “integer”, “numeric”, “factor”, “ordered”
Id | Type | Default | Levels | Range |
cp | numeric | 0.01 | [0, 1] |
|
keep_model | logical | FALSE | TRUE, FALSE | - |
maxcompete | integer | 4 | [0, \infty) |
|
maxdepth | integer | 30 | [1, 30] |
|
maxsurrogate | integer | 5 | [0, \infty) |
|
minbucket | integer | - | [1, \infty) |
|
minsplit | integer | 20 | [1, \infty) |
|
surrogatestyle | integer | 0 | [0, 1] |
|
usesurrogate | integer | 2 | [0, 2] |
|
xval | integer | 10 | [0, \infty) |
|
mlr3::Learner
-> mlr3::LearnerRegr
-> LearnerRegrRpart
new()
Creates a new instance of this R6 class.
LearnerRegrRpart$new()
importance()
The importance scores are extracted from the model slot variable.importance
.
LearnerRegrRpart$importance()
Named numeric()
.
selected_features()
Selected features are extracted from the model slot frame$var
.
LearnerRegrRpart$selected_features()
character()
.
clone()
The objects of this class are cloneable with this method.
LearnerRegrRpart$clone(deep = FALSE)
deep
Whether to make a deep clone.
Breiman L, Friedman JH, Olshen RA, Stone CJ (1984). Classification And Regression Trees. Routledge. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1201/9781315139470")}.
Chapter in the mlr3book: https://mlr3book.mlr-org.com/chapters/chapter2/data_and_basic_modeling.html#sec-learners
Package mlr3learners for a solid collection of essential learners.
Package mlr3extralearners for more learners.
Dictionary of Learners: mlr_learners
as.data.table(mlr_learners)
for a table of available Learners in the running session (depending on the loaded packages).
mlr3pipelines to combine learners with pre- and postprocessing steps.
Package mlr3viz for some generic visualizations.
Extension packages for additional task types:
mlr3proba for probabilistic supervised regression and survival analysis.
mlr3cluster for unsupervised clustering.
mlr3tuning for tuning of hyperparameters, mlr3tuningspaces for established default tuning spaces.
Other Learner:
Learner
,
LearnerClassif
,
LearnerRegr
,
mlr_learners
,
mlr_learners_classif.debug
,
mlr_learners_classif.featureless
,
mlr_learners_classif.rpart
,
mlr_learners_regr.debug
,
mlr_learners_regr.featureless
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.