xgboost

Public Member Functions | Public Attributes | List of all members
xgboost::RTreeNodeStat Struct Reference

node statistics used in regression tree More...

`#include <tree_model.h>`

Collaboration diagram for xgboost::RTreeNodeStat:

## Public Member Functions
| RTreeNodeStat ()=default
| RTreeNodeStat (float loss_chg, float sum_hess, float weight)
bool | operator== (const RTreeNodeStat &b) const

## Public Attributes
bst_float | loss_chg
| loss change caused by current split More...
bst_float | sum_hess
| sum of hessian values, used to measure coverage of data More...
bst_float | base_weight
| weight of current node More...
int | leaf_child_cnt {0}
| number of child that is leaf node known up to now More...

## Detailed Description

node statistics used in regression tree

## Constructor & Destructor Documentation

## ◆ RTreeNodeStat() [1/2]

xgboost::RTreeNodeStat::RTreeNodeStat | ( |  | ) |
| default

## ◆ RTreeNodeStat() [2/2]

xgboost::RTreeNodeStat::RTreeNodeStat | ( | float | loss_chg,
|  | float | sum_hess,
|  | float | weight
| ) |  |
| inline

## Member Function Documentation

## ◆ operator==()

bool xgboost::RTreeNodeStat::operator== | ( | const RTreeNodeStat & | b | ) | const
| inline

## Member Data Documentation

## ◆ base_weight

bst_float xgboost::RTreeNodeStat::base_weight

weight of current node

## ◆ leaf_child_cnt

int xgboost::RTreeNodeStat::leaf_child_cnt {0}

number of child that is leaf node known up to now

## ◆ loss_chg

bst_float xgboost::RTreeNodeStat::loss_chg

loss change caused by current split

## ◆ sum_hess

bst_float xgboost::RTreeNodeStat::sum_hess

sum of hessian values, used to measure coverage of data

The documentation for this struct was generated from the following file:

- /workspace/include/xgboost/tree_model.h