This learner uses rpart from rpart to fit recursive partitioning and regression trees.

Format

R6Class object.

Value

Learner object with methods for training and prediction. See Lrnr_base for documentation on learners.

Parameters

model

If logical: keep a copy of the model frame in the result?

x

Whether to keep a copy of the x matrix in the result.

y

Whether to keep a copy of the dependent variable in the result.

...

Other parameters to be passed directly to rpart. See its documentation for details.