0.1.0
Returns the average path length of the nodes in a tree from the root given the number of training data points
(number)
the number of data training points
any
:
the average path length from the root
Constructor for a tree node used in an isolation forest
Verifies whether the current node is an inner node in the tree it belongs to
any
:
a boolean
Verifies whether the current node is a leaf node in the tree it belongs to
any
:
a boolean
Returns the number of data points in the current node
any
:
the number of data points
Returns the length of the path from the root to isolate the data point
Train a node for the isolation forest given the training set
(any)
(number)
depth of the node which is currently trained
Create a new instance of IsolationForest
Predict the anomalies in the set
(any)
Array<number>
:
returns the anomaly scores for the data points
Train the trees in the Isolation Forest with the given training set
(any)