Package biz.k11i.xgboost.tree
Class RegTreeNode
- java.lang.Object
-
- biz.k11i.xgboost.tree.RegTreeNode
-
- Direct Known Subclasses:
RegTreeImpl.Node
public abstract class RegTreeNode extends java.lang.Object implements INode<FVec>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegTreeNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleandefault_left()abstract floatgetLeafValue()abstract intgetLeftChildIndex()abstract intgetParentIndex()abstract intgetRightChildIndex()abstract floatgetSplitCondition()abstract intgetSplitIndex()
-
-
-
Method Detail
-
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
-
-