Random regression forest. Calls ranger::ranger() from package ranger.

Dictionary

This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():

mlr_learners$get("regr.ranger")
lrn("regr.ranger")

References

Wright MN, Ziegler A (2017). “ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and R.” Journal of Statistical Software, 77(1), 1--17. doi: 10.18637/jss.v077.i01 .

Breiman L (2001). “Random Forests.” Machine Learning, 45(1), 5--32. ISSN 1573-0565, doi: 10.1023/A:1010933404324 .

See also

Super classes

mlr3::Learner -> mlr3::LearnerRegr -> LearnerRegrRanger

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerRegrRanger$new()


Method importance()

The importance scores are extracted from the model slot variable.importance. Parameter importance.mode must be set to "impurity", "impurity_corrected", or "permutation"

Usage

LearnerRegrRanger$importance()

Returns

Named numeric().


Method oob_error()

The out-of-bag error, extracted from model slot prediction.error.

Usage

LearnerRegrRanger$oob_error()

Returns

numeric(1).


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrRanger$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (requireNamespace("ranger")) { learner = mlr3::lrn("regr.ranger") print(learner) # available parameters: learner$param_set$ids() }
#> <LearnerRegrRanger:regr.ranger> #> * Model: - #> * Parameters: list() #> * Packages: ranger #> * Predict Type: response #> * Feature types: logical, integer, numeric, character, factor, ordered #> * Properties: importance, oob_error, weights
#> [1] "num.trees" "mtry" #> [3] "importance" "write.forest" #> [5] "min.node.size" "replace" #> [7] "sample.fraction" "splitrule" #> [9] "num.random.splits" "alpha" #> [11] "minprop" "split.select.weights" #> [13] "always.split.variables" "respect.unordered.factors" #> [15] "scale.permutation.importance" "keep.inbag" #> [17] "holdout" "num.threads" #> [19] "save.memory" "verbose" #> [21] "oob.error"