tree node
More...
#include <tree.h>
|
union | Info |
| store either leaf value or decision threshold More...
|
|
|
void | Init () |
| Initialization method. Use this in lieu of constructor (POD types cannot have a non-trivial constructor)
|
|
|
int32_t | cleft_ |
| pointer to left and right children
|
|
int32_t | cright_ |
|
uint32_t | sindex_ |
| feature index used for the split highest bit indicates default direction for missing values
|
|
Info | info_ |
| storage for leaf value or decision threshold
|
|
uint64_t | data_count_ |
| number of data points whose traversal paths include this node. LightGBM models natively store this statistics.
|
|
double | sum_hess_ |
| sum of hessian values for all data points whose traversal paths include this node. This value is generally correlated positively with the data count. XGBoost models natively store this statistics.
|
|
double | gain_ |
| change in loss that is attributed to a particular split
|
|
SplitFeatureType | split_type_ |
| feature split type
|
|
Operator | cmp_ |
| operator to use for expression of form [fval] OP [threshold]. If the expression evaluates to true, take the left child; otherwise, take the right child.
|
|
bool | missing_category_to_zero_ |
|
bool | data_count_present_ |
| whether data_count_ field is present
|
|
bool | sum_hess_present_ |
| whether sum_hess_ field is present
|
|
bool | gain_present_ |
| whether gain_present_ field is present
|
|
uint16_t | pad_ |
|
tree node
Definition at line 83 of file tree.h.
The documentation for this struct was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/0.92rc1/include/treelite/tree.h
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/0.92rc1/include/treelite/tree_impl.h