public abstract class Split
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Split> |
comparator |
Constructor and Description |
---|
Split(LeafNode leaf,
int feature,
double score,
int lo,
int hi,
int trueCount,
int falseCount)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.function.IntPredicate |
predicate()
Returns the lambda that tests on the split feature.
|
abstract InternalNode |
toNode(Node trueChild,
Node falseChild)
Returns an internal node with the feature, value, and score of this split.
|
java.lang.String |
toString() |
public static java.util.Comparator<Split> comparator
public Split(LeafNode leaf, int feature, double score, int lo, int hi, int trueCount, int falseCount)
public abstract InternalNode toNode(Node trueChild, Node falseChild)
trueChild
- the child node of true branch.falseChild
- the child node of false branch.public abstract java.util.function.IntPredicate predicate()
public java.lang.String toString()
toString
in class java.lang.Object