buildDT: Build Decision Tree Model

Description Usage Arguments Details Value

Description

buildDT builds a model using the rpart function from the rpart package.

Usage

1
buildDT(object, top = 0, ...)

Arguments

object

An ExprsArray object. The training set.

top

A numeric scalar or character vector. A numeric scalar indicates the number of top features that should undergo feature selection. A character vector indicates specifically which features by name should undergo feature selection. Set top = 0 to include all features. A numeric vector can also be used to indicate specific features by location, similar to a character vector.

...

Arguments passed to the detailed function.

Details

Provide cp as a numeric scalar to trim the rpart decision tree. If provided, this argument is passed to the rpart::prune function. Set cp = 0 to skip pruning (default behavior).

Value

Returns an ExprsModel object.


exprso documentation built on May 1, 2019, 7:11 p.m.