public interface Split extends Verifiable
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_SUBSET_FOR_NULLS
If there is not distinguished subset for null cases.
|
static int |
SUBSET_FOR_NULLS_NOT_SET
If the subset's index has not been set yet.
|
| Modifier and Type | Method and Description |
|---|---|
SplitValue |
getActualSplit()
The returned split is the actual (current) split which currently works
while using the tree for viewing, applying, testing etc.
|
java.lang.String |
getAttributeName()
Returns split attribute name.
|
SplitValue |
getBuiltSplit()
The returned split is the original split in model created by build task.
|
ComparisonOperator |
getComparisonOperator(int childIndx)
Gets the split operator for i'th child.
|
java.lang.String |
getLabel(int i)
Gets the split label for i'th child.
|
SplitValue |
getOptimalSplit()
The returned split is the split created by algorithm, that means the
split is optimal using split evaluation criterion..
|
java.lang.String |
getRule(int i)
Gets the predicate rule for i'th child.
|
double |
getSplitEvaluation()
Returns evaluation value for this split, if computed in the tree building
phase.
|
int |
getSubsetForNulls()
Which subset gets the null cases.
|
SplitStats |
getTrain()
Returns split statistics for train data.
|
SplitStats |
getValidation()
Returns split statistics for validation data.
|
boolean |
isNumerical()
Numerical split type flag.
|
void |
setActualSplit(SplitValue val)
The returned split is the actual split which currently works while using
the tree for viewing, applying, testing etc.
|
void |
setPredicates(Predicate[] predicates)
Sets children predicates
|
void |
setSubsetForNulls(int subsetForNulls)
Sets which subset is going to be used to process null cases.
|
verifystatic final int NO_SUBSET_FOR_NULLS
static final int SUBSET_FOR_NULLS_NOT_SET
SplitValue getActualSplit()
getBuiltSplit() and can be manually
changed.java.lang.String getAttributeName()
SplitValue getBuiltSplit()
ComparisonOperator getComparisonOperator(int childIndx)
childIndx - java.lang.String getLabel(int i)
SplitValue getOptimalSplit()
java.lang.String getRule(int i)
i - double getSplitEvaluation()
NaN if not
apriopriate.SplitStats getTrain()
SplitStats getValidation()
boolean isNumerical()
void setActualSplit(SplitValue val)
getBuiltSplit() and can be manually changed.val - threshold value for this binary splitvoid setPredicates(Predicate[] predicates)
predicates - int getSubsetForNulls()
-1 if there is not distinguished subset for null cases. -2 if the subset's index has not been set yet.
void setSubsetForNulls(int subsetForNulls)
subsetForNulls - The subset's index.