Package biz.k11i.xgboost.tree
Class RegTreeNodeStat
- java.lang.Object
-
- biz.k11i.xgboost.tree.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 Summary
Fields Modifier and Type Field Description (package private) floatbase_weight(package private) intleaf_child_cnt(package private) floatloss_chg(package private) floatsum_hess
-
Constructor Summary
Constructors Constructor Description RegTreeNodeStat(ModelReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetBaseWeight()floatgetCover()floatgetGain()intgetLeafCount()floatgetWeight()
-
-
-
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
-
-