public class OrdinalSplit extends Split
comparator
Constructor and Description |
---|
OrdinalSplit(LeafNode leaf,
int feature,
double value,
double score,
int lo,
int hi,
int trueCount,
int falseCount,
java.util.function.IntPredicate predicate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.function.IntPredicate |
predicate()
Returns the lambda that tests on the split feature.
|
OrdinalNode |
toNode(Node trueChild,
Node falseChild)
Returns an internal node with the feature, value, and score of this split.
|
public OrdinalSplit(LeafNode leaf, int feature, double value, double score, int lo, int hi, int trueCount, int falseCount, java.util.function.IntPredicate predicate)
public OrdinalNode toNode(Node trueChild, Node falseChild)
Split