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

View source: R/isoforest.R

isotree.set.nthreadsR Documentation

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)

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.

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.


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