kumulant

ThresholdSplit

@Serializable
@SerialName(value = "ThresholdSplit")
data class ThresholdSplit(val featureIndex: Int, val threshold: Double) : SerializableSplit(source)

Route by row[featureIndex] <= threshold. Threshold is inclusive on the "pos" side.

Constructors

ThresholdSplit

constructor(featureIndex: Int, threshold: Double)(source)

Properties

featureIndex

Index into the context vector that the split inspects.

threshold

Inclusive threshold separating pos (<=) from neg (>).

Functions

direction

open override fun direction(row: VectorView): Boolean(source)

Evaluate the predicate against the context row; true routes "pos", false "neg".

toString

open override fun toString(): String(source)