isotree.subset.trees: Subset trees of a given model

View source: R/isoforest.R

isotree.subset.treesR Documentation

Subset trees of a given model

Description

Creates a new isolation forest model containing only selected trees of a given isolation forest model object. Note that, if using 'lazy_serialization=FALSE', this will re-trigger serialization.

Usage

isotree.subset.trees(model, trees_take)

Arguments

model

An 'isolation_forest' model object.

trees_take

Indices of the trees of 'model' to copy over to a new model, as an integer vector. Must be integers with numeration starting at one

Value

A new isolation forest model object, containing only the subset of trees from this 'model' that was specified under 'trees_take'.


isotree documentation built on Nov. 20, 2023, 1:06 a.m.