isotree (version 0.1.28)

deepcopy.isotree: Deep-Copy an Isolation Forest Model Object

Description

Deep-Copy an Isolation Forest Model Object

Usage

deepcopy.isotree(model)

Arguments

model

An `isolation_forest` model object.

Value

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

Details

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 add.isolation.tree and append.trees - as otherwise R's objects follow a copy-on-write logic.