Learn R Programming

iai (version 1.10.2)

prune_trees: 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

Run this code
if (FALSE) iai::prune_trees(lnr, ...)

Run the code above in your browser using DataLab