public class NominalSplit extends Split
comparator
Constructor and Description |
---|
NominalSplit(LeafNode leaf,
int feature,
int 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.
|
NominalNode |
toNode(Node trueChild,
Node falseChild)
Returns an internal node with the feature, value, and score of this split.
|
public NominalSplit(LeafNode leaf, int feature, int value, double score, int lo, int hi, int trueCount, int falseCount, java.util.function.IntPredicate predicate)
public NominalNode toNode(Node trueChild, Node falseChild)
Split