Description Usage Arguments Value
Prune singletons from tree.
1 2 3 | sid_prune_singletons(tree_res, data_train, data_test, classifier = svm,
R = 100, Rmin = 250, Rmax = 500, z = 2.57, alpha = 0.05,
parallel = TRUE)
|
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. |
Rmin |
Ninimum number of replications for calculating p-values. Default is 250. |
Rmax |
Maximum number of replications for calculating p-values. Default is 500. |
z |
Parameter for confidence band. Use 1.96 for 95 percent, 2.25 for 97.5 percent and 2.57 for 99 percent. Default is 2.57. |
alpha |
Significance level (default is 0.05). |
parallel |
Calculate in parallel (Boolean, default is |
The pruned tree results structure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.