Categories &

Functions List

Class Definition: IsolationForest

statistics: IsolationForest

Isolation Forest model for anomaly detection.

An IsolationForest object stores an ensemble of isolation trees fitted to a set of observations and detects anomalies through the isanomaly method. Create a model with the iforest function rather than by calling this constructor directly.

Anomalies are easier to isolate, so they sit closer to the root of a random isolation tree; the shorter its average path length across the ensemble, the higher an observation’s anomaly score.

See also: iforest, isanomaly

Source Code: IsolationForest

The IsolationForest class contains the following properties:

The IsolationForest class offers the following public methods:

IsolationForest: Mdl = IsolationForest (X)
IsolationForest: Mdl = IsolationForest (X, name, value)

IsolationForest: tf = isanomaly (Mdl, Xnew)
IsolationForest: [tf, scores] = isanomaly (Mdl, Xnew)
IsolationForest: […] = isanomaly (…, 'ScoreThreshold', t)

IsolationForest: tf = isanomaly (Mdl, Xnew)
IsolationForest: [tf, scores] = isanomaly (Mdl, Xnew)
IsolationForest: […] = isanomaly (…, 'ScoreThreshold', t)