brifTree.default {brif}R Documentation

Build a single brif tree taking a data frame as input

Description

This function invokes brif.default with appropriately set parameters to generate a single tree with the maximum expected predictive accuracy.

Usage

## Default S3 method:
brifTree(
  x,
  depth = 3,
  n_cuts = 2047,
  max_integer_classes = 20,
  max_factor_levels = 30,
  seed = 0,
  ...
)

Arguments

x

a data frame containing the training data. The first column is treated as the target variable.

depth

a positive integer indicating the desired depth of the tree.

n_cuts

a positive integer indicating the maximum number of split points to generate on each numeric or integer variable. A large value is preferred for a single tree.

max_integer_classes

a positive integer. See brif.default for details.

max_factor_levels

a positive integer. See brif.default for details.

seed

a non-negative positive integer specifying the random number generator seed.

...

other relevant arguments.

Value

an object of class brif. See brif.default for details.


[Package brif version 1.4.1 Index]