Class RegTreeNodeStat

java.lang.Object
biz.k11i.xgboost.tree.RegTreeNodeStat
All Implemented Interfaces:
INodeStat, Serializable

public class RegTreeNodeStat extends Object implements INodeStat, Serializable
Statistics for node in tree.
See Also:
  • Field Details

    • loss_chg

      final float loss_chg
    • sum_hess

      final float sum_hess
    • base_weight

      final float base_weight
    • leaf_child_cnt

      final int leaf_child_cnt
  • Constructor Details

  • Method Details

    • getWeight

      public float getWeight()
      Specified by:
      getWeight in interface INodeStat
    • getGain

      public float getGain()
      Returns:
      loss chg caused by current split
    • getCover

      public float getCover()
      Returns:
      sum of hessian values, used to measure coverage of data
    • getBaseWeight

      public float getBaseWeight()
      Returns:
      weight of current node
    • getLeafCount

      public int getLeafCount()
      Returns:
      number of child that is leaf node known up to now