isanomaly
Find anomalies in data using isolation forest
Syntax
Description
finds anomalies in the table tf
= isanomaly(forest
,Tbl
)Tbl
using the IsolationForest
object forest
and returns the logical array tf
,
whose elements are true
when an anomaly is detected in the corresponding
row of Tbl
. You must use this syntax if you create
forest
by passing a table to the iforest
function.
specifies options using one or more name-value argument combinations in addition to any of
the input arguments in the previous syntaxes. For example, set
tf
= isanomaly(___,Name=Value
)
to identify observations with
scores above 0.5 as anomalies.ScoreThreshold
=0.5
Examples
Input Arguments
Output Arguments
More About
Algorithms
isanomaly
considers
NaN
, ''
(empty character vector),
""
(empty string), <missing>
, and
<undefined>
values in Tbl
and
NaN
values in X
to be missing values.
isanomaly
does not use observations with all missing values and assigns the anomaly score of 1 to the observations.isanomaly
uses observations with some missing values to find splits on variables for which these observations have valid values.
References
[1] Liu, F. T., K. M. Ting, and Z. Zhou. "Isolation Forest," 2008 Eighth IEEE International Conference on Data Mining. Pisa, Italy, 2008, pp. 413-422.