isotree.deep.copy: Deep-Copy an Isolation Forest Model Object

View source: R/isoforest.R

isotree.deep.copyR Documentation

Deep-Copy an Isolation Forest Model Object

Description

Generates a deep copy of a model object, including the C++ objects inside it. This function is only meaningful if one intends to call a function that modifies the internal C++ objects - currently, the only such function are isotree.add.tree and isotree.append.trees - as otherwise R's objects follow a copy-on-write logic.

Usage

isotree.deep.copy(model)

Arguments

model

An 'isolation_forest' model object.

Value

A new 'isolation_forest' object, with deep-copied C++ objects.

See Also

isotree.is.same


isotree documentation built on May 29, 2024, 11:24 a.m.