isotree.subset.trees | R Documentation |
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.
isotree.subset.trees(model, trees_take)
## S3 method for class 'isolation_forest'
x[i]
model , x |
An 'isolation_forest' model object. |
trees_take , i |
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 |
A new isolation forest model object, containing only the subset of trees from this 'model' that was specified under 'trees_take'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.