A LearnerRegr for a regression tree implemented in rpart::rpart() in package rpart. Parameter xval is set to 0 in order to save some computation time.

Dictionary

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")

References

Breiman L, Friedman JH, Olshen RA, Stone CJ (1984). Classification And Regression Trees. Routledge. doi: 10.1201/9781315139470 .

See also

Super classes

mlr3::Learner -> mlr3::LearnerRegr -> LearnerRegrRpart

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerRegrRpart$new()


Method importance()

The importance scores are extracted from the model slot variable.importance.

Usage

LearnerRegrRpart$importance()

Returns

Named numeric().


Method selected_features()

Selected features are extracted from the model slot frame$var.

Usage

LearnerRegrRpart$selected_features()

Returns

character().


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrRpart$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.