Package biz.k11i.xgboost.tree
Class RegTreeNodeStat
java.lang.Object
biz.k11i.xgboost.tree.RegTreeNodeStat
- All Implemented Interfaces:
INodeStat,Serializable
Statistics for node in tree.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final float(package private) final int(package private) final float(package private) final float -
Constructor Summary
Constructors -
Method Summary
-
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
-
RegTreeNodeStat
RegTreeNodeStat(ModelReader reader) throws IOException - Throws:
IOException
-
-
Method Details
-
getWeight
public float getWeight() -
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
-