sid_prune_tree: Prune tree.

Description Usage Arguments Value

View source: R/sid_main_algorithm.R

Description

Prune tree.

Usage

1
2
sid_prune_tree(tree_res, data_train, data_test, classifier = svm, R = 100,
  alpha = 0.05, parallel = TRUE)

Arguments

tree_res

A tree results structure.

data_train

Training data.

data_test

Testing data.

classifier

A classifier function, default is svm (from the e1071 package).

R

Number of replications. Default is 100.

alpha

Significance level (default is 0.05).

parallel

Calculate in parallel (Boolean, default is TRUE).

Value

The pruned tree results structure.


bwrc/astrid-r documentation built on June 24, 2017, 8:05 p.m.