TreePruning: Uses a Validation Set to select the best trees within the...

Description Usage Arguments Value Examples

View source: R/best.R

Description

Uses a Validation Set to select the best trees within the list of pruned trees.

Usage

1

Arguments

Fit

A BEST object

VSet

A Validation Set (Can also be used in CV loop)

Value

The shallower trees among trees wiht Highest accuracy. This replaces the first element in the BEST object list.

Examples

1
2
3
4
nv <- 50
ValData <- BESTree::Data[(1000+1):nv,]
Fit <- BESTree::Fit
Fit[[1]] <- BESTree::TreePruning(Fit,ValData)

BESTree documentation built on Aug. 9, 2019, 5:07 p.m.