prune_trees {iai}R 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, ...)


[Package iai version 1.10.1 Index]