Learn R Programming

isotree (version 0.5.15)

isotree.set.nthreads: Set Number of Threads for Isolation Forest Model Object

Description

Changes the number of threads that an isolation forest model object will use when calling functions such as `predict`.

Usage

isotree.set.nthreads(model, nthreads = 1L)

Value

The same `model` object (as invisible), but now with a different configured number of threadst. Note the input object is modified in-place regardless.

Arguments

model

An Isolation Forest model (as returned by function isolation.forest) for which an indexer for terminal node numbers and/or distances will be added.

The object will be modified in-place.

nthreads

Number of threads to set for this model object to use.