kumulant

SerializableSplit

@Serializable(with = SerializableSplitSerializer::class)
sealed interface SerializableSplit : Split<Vector> (source)

Wire-portable Split over a dense Vector context. Sealed + serializable so tree snapshots round-trip cleanly through kotlinx.serialization. Built-in implementations: ThresholdSplit (numeric x[i] <= t) and ExprSplit (wrapping a BoolExpr); callers needing custom predicates compose them as BoolExpr AST nodes and wrap in ExprSplit.

Inheritors

Functions

Link copied to clipboard
abstract fun direction(row: Vector): Boolean

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