Class IsolationTree
java.lang.Object
smile.anomaly.IsolationTree
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationTree(List<double[]> data, int maxDepth, int extensionLevel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoublepath(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.
-