copy_splits_and_refit_leaves: Copy the tree split structure from one learner into another...

View source: R/optimaltrees.R

copy_splits_and_refit_leavesR Documentation

Copy the tree split structure from one learner into another and refit the models in each leaf of the tree using the supplied data

Description

Julia Equivalent: IAI.copy_splits_and_refit_leaves!

Usage

copy_splits_and_refit_leaves(new_lnr, orig_lnr, ...)

Arguments

new_lnr

The learner to modify and refit

orig_lnr

The learner from which to copy the tree split structure

...

Refer to the Julia documentation for available parameters

IAI Compatibility

Requires IAI version 3.0 or higher.

Examples

## Not run: iai::copy_splits_and_refit_leaves(new_lnr, orig_lnr, ...)


iai documentation built on Oct. 19, 2024, 1:07 a.m.