tree node
More...
#include <tree_model.h>
◆ Node()
xgboost::RegTree::Node::Node |
( |
| ) |
|
|
inline |
◆ DefaultChild()
index of default child when feature is missing
◆ DefaultLeft()
when feature is unknown, whether goes to left child
◆ IsDeleted()
whether this node is deleted
◆ IsLeaf()
whether current node is leaf node
◆ IsLeftChild()
whether current node is left child
◆ IsRoot()
whether current node is root
◆ LeafValue()
- Returns
- get leaf value of leaf node
◆ LeftChild()
◆ MarkDelete()
mark that this node is deleted
◆ operator==()
bool xgboost::RegTree::Node::operator== |
( |
const Node & |
b | ) |
const |
|
inline |
◆ Parent()
◆ Reuse()
◆ RightChild()
◆ SetLeaf()
set the leaf value of the node
- Parameters
-
value | leaf value |
right | right index, could be used to store additional information |
◆ SetLeftChild()
set the left child
- Parameters
-
nid | node id to right child |
◆ SetParent()
XGBOOST_DEVICE void xgboost::RegTree::Node::SetParent |
( |
int |
pidx, |
|
|
bool |
is_left_child = true |
|
) |
| |
|
inline |
◆ SetRightChild()
set the right child
- Parameters
-
nid | node id to right child |
◆ SetSplit()
XGBOOST_DEVICE void xgboost::RegTree::Node::SetSplit |
( |
unsigned |
split_index, |
|
|
SplitCondT |
split_cond, |
|
|
bool |
default_left = false |
|
) |
| |
|
inline |
set split condition of current node
- Parameters
-
split_index | feature index to split |
split_cond | split condition |
default_left | the default direction when feature is unknown |
◆ SplitCond()
- Returns
- get split condition of the node
◆ SplitIndex()
feature index of split condition
The documentation for this class was generated from the following file: