kumulant

SerializableSplit

@Serializable
sealed interface SerializableSplit : Split<VectorView> (source)

Wire-portable Split over a dense VectorView 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: VectorView): Boolean

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