Class RegTreeNodeStat

  • All Implemented Interfaces:
    INodeStat, java.io.Serializable

    public class RegTreeNodeStat
    extends java.lang.Object
    implements INodeStat, java.io.Serializable
    Statistics for node in tree.
    See Also:
    Serialized Form
    • Field Detail

      • 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 Detail

      • RegTreeNodeStat

        RegTreeNodeStat​(ModelReader reader)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • 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