Class RegTreeNode
java.lang.Object
biz.k11i.xgboost.tree.RegTreeNode
- All Implemented Interfaces:
INode<FVec>, Serializable
- Direct Known Subclasses:
RegTreeImpl.Node
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract floatabstract intabstract intabstract intabstract floatabstract int
-
Constructor Details
-
RegTreeNode
public RegTreeNode()
-
-
Method Details
-
getParentIndex
public abstract int getParentIndex()- Returns:
- Index of node's parent
-
getLeftChildIndex
public abstract int getLeftChildIndex()- Specified by:
getLeftChildIndexin interfaceINode<FVec>- Returns:
- Index of node's left child node
-
getRightChildIndex
public abstract int getRightChildIndex()- Specified by:
getRightChildIndexin interfaceINode<FVec>- Returns:
- Index of node's right child node
-
getSplitCondition
public abstract float getSplitCondition()- Returns:
- Split condition on the node, if the node is a split node. Leaf nodes have this value set to NaN
-
getLeafValue
public abstract float getLeafValue()- Specified by:
getLeafValuein interfaceINode<FVec>- Returns:
- Predicted value on the leaf node, if the node is leaf. Otherwise NaN
-
default_left
public abstract boolean default_left()- Returns:
- True if default direction for unrecognized values is the LEFT child, otherwise false.
-
getSplitIndex
public abstract int getSplitIndex()- Specified by:
getSplitIndexin interfaceINode<FVec>- Returns:
- Index of domain category used to split on the node
-