Package smile.anomaly
Class IsolationTree
java.lang.Object
smile.anomaly.IsolationTree
- All Implemented Interfaces:
Serializable
Isolation tree.
- See Also:
-
Constructor Summary
ConstructorDescriptionIsolationTree
(List<double[]> data, int maxDepth, int extensionLevel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
path
(double[] x) Returns the path length from the root to the leaf node.
-
Constructor Details
-
IsolationTree
Constructor.- Parameters:
data
- the training data.maxDepth
- the maximum depth of the tree.extensionLevel
- the extension level.
-
-
Method Details
-
path
public double path(double[] x) Returns the path length from the root to the leaf node.- Parameters:
x
- the sample.- Returns:
- the path length.
-