isolationForest

fun isolationForest(x: Array<DoubleArray>, trees: Int = 100, maxDepth: Int = 0, subsample: Double = 0.7, extensionLevel: Int = 0): IsolationForest(source)

Fits an Isolation Forest model for anomaly detection.

Return

the fitted model.

Parameters

x

training samples.

trees

the number of trees.

maxDepth

the maximum depth of an isolation tree (0 for log2(subsample)).

subsample

the sampling rate for each tree.

extensionLevel

extension level for hyperplanes (0 for standard axis-aligned).