Class RegTreeNode

java.lang.Object
biz.k11i.xgboost.tree.RegTreeNode
All Implemented Interfaces:
INode<FVec>, Serializable
Direct Known Subclasses:
RegTreeImpl.Node

public abstract class RegTreeNode extends Object implements INode<FVec>, Serializable
See Also:
  • 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:
      getLeftChildIndex in interface INode<FVec>
      Returns:
      Index of node's left child node
    • getRightChildIndex

      public abstract int getRightChildIndex()
      Specified by:
      getRightChildIndex in interface INode<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:
      getLeafValue in interface INode<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:
      getSplitIndex in interface INode<FVec>
      Returns:
      Index of domain category used to split on the node