Description Usage Arguments Value Examples
View source: R/forest_helpers.R
Prunes each tree in the list forest$Trees according to the provided complexity parameter. Returns a new forest.
1 | pruneForest(forest, cp)
|
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) |
A new spline forest model (named list) where each tree has been pruned to the desired level.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.