pruneForest: Prune each tree in forest using a given complexity parameter.

Description Usage Arguments Value Examples

View source: R/forest_helpers.R

Description

Prunes each tree in the list forest$Trees according to the provided complexity parameter. Returns a new forest.

Usage

1

Arguments

forest

A model returned by splineForest()

cp

The complexity parameter that will be used to prune each tree (see rpart package documentation for detailed description of complexity parameter)

Value

A new spline forest model (named list) where each tree has been pruned to the desired level.

Examples

1
2
3

anna-neufeld/splinetree documentation built on Aug. 27, 2019, 9:39 p.m.