prune_trees: Use the trained trees in a learner along with the supplied...

View source: R/optimaltrees.R

prune_treesR Documentation

Use the trained trees in a learner along with the supplied validation data to determine the best value for the 'cp' parameter and then prune the trees according to this value

Description

Julia Equivalent: IAI.prune_trees!

Usage

prune_trees(lnr, ...)

Arguments

lnr

The learner to prune

...

Refer to the Julia documentation for available parameters

IAI Compatibility

Requires IAI version 3.0 or higher.

Examples

## Not run: iai::prune_trees(lnr, ...)


iai documentation built on July 9, 2023, 5:41 p.m.