public interface Node extends Verifiable
| Modifier and Type | Method and Description |
|---|---|
int |
getActualSplitIndex()
Returns index of the split.
|
java.util.List |
getBestSplits()
List of best splits.
|
int |
getBuiltSplitIndex()
Returns index of the split that was used by build task.
|
java.util.List |
getChildren()
Gets the list of this node children.
|
int |
getChildrenCount()
Gets the number of children.
|
double |
getCount()
Gets the total number of observations that fall into this node.
|
java.lang.String |
getName()
Gets the name of this node.
|
int |
getNodeID()
Gets the unique id of this node.
|
java.lang.String |
getNodeRule()
Returns string representation of the rule for this node.
|
double |
getNullCount()
Gets the number of observations that fall into this node with null value
at the split attribute.
|
Split |
getSplit()
Returns actual split.
|
Split |
getSplit(int spIndex)
Returns [spIndex] best split.
|
java.lang.String |
getSplitAttributeName()
Gets the name of the split attribute.
|
double |
getValidationCount()
Gets the number of observations from validation data set that fall into
this node.
|
boolean |
isDirty()
Check if this node is dirty.
|
boolean |
isLeaf()
Check if this node is a leaf node.
|
boolean |
isPruned()
Check if this node was pruned.
|
void |
setActualSplitIndex(int i)
Sets the actual split, for details see -
getActualSplitIndex(). |
void |
setBestSplits(java.util.List bestSplits)
List of best splits.
|
void |
setCount(double count)
Sets the total number of observations that fall into this node.
|
void |
setDirty(boolean dirty)
Sets whether this node is dirty.
|
void |
setLeaf(boolean isLeaf)
Sets whether this node is a leaf node.
|
void |
setNodeID(int id)
Sets the unique id of this node.
|
void |
setNullCount(double nullCount)
Sets the number of observations that fall into this node with null value
at the split attribute.
|
void |
setValidationCount(double validationCount)
Sets the total number of observations that fall into this node.
|
verifyjava.util.List getChildren()
Node type.double getCount()
void setCount(double count)
count - Number of observations that fall into this node.void setValidationCount(double validationCount)
count - Number of observations in validation set that fall into this node.double getNullCount()
void setNullCount(double nullCount)
nullCount - Number of observations with null value at split attributedouble getValidationCount()
java.lang.String getName()
getNodeID() function.int getNodeID()
void setNodeID(int id)
id - the unique idint getChildrenCount()
getChildren()
object.java.lang.String getSplitAttributeName()
#getPredicate() function. Not used by the scoring mechanism.boolean isLeaf()
void setLeaf(boolean isLeaf)
isLeaf - If True, this is leaf node.boolean isPruned()
boolean isDirty()
void setDirty(boolean dirty)
dirty - If True, this node is dirty.java.lang.String getNodeRule()
int getActualSplitIndex()
getBuiltSplitIndex()
and can be manually changed.void setActualSplitIndex(int i)
getActualSplitIndex().i - index of the actual splitint getBuiltSplitIndex()
Split getSplit()
getBestSplits()[getActualSplitIndex()].Split getSplit(int spIndex)
getBestSplits()[spIndex].spIndex - java.util.List getBestSplits()
Split objects.void setBestSplits(java.util.List bestSplits)