mlr_learners_classif.cforest: Classification Conditional Random Forest Learner

Description Dictionary Super classes Methods References See Also Examples

Description

Classification conditional random forest learner. Calls partykit::cforest() from package partykit.

Dictionary

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

1
2
mlr_learners$get("classif.cforest")
lrn("classif.cforest")

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifCForest

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
LearnerClassifCForest$new()

Method oob_error()

The out-of-bag error, calculated using the OOB predictions from partykit.

Usage
LearnerClassifCForest$oob_error()
Returns

numeric(1).


Method clone()

The objects of this class are cloneable with this method.

Usage
LearnerClassifCForest$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

References

mlr3learners.partykitpartykit1 mlr3learners.partykitpartykit2

See Also

Dictionary of Learners: mlr3::mlr_learners

Examples

1
2
3
4
5
6
7
if (requireNamespace("partykit")) {
  learner = mlr3::lrn("classif.cforest")
  print(learner)

  # available parameters:
  learner$param_set$ids()
}

mlr3learners/mlr3learners.partykit documentation built on June 4, 2020, 8:16 p.m.