ATLAS Offline Software
|
Node for LGBM with nan implementation. More...
#include <NodeImpl.h>
Public Member Functions | |
NodeLGBM (const int ivar, const float val, const index_t right, const int8_t default_left) | |
void | Print (index_t index) const |
index_t | GetNext (const float value, index_t index) const |
bool | GetDefaultLeft () const |
bool | IsLeaf () const |
is the current node a leaf node More... | |
var_t | GetVar () const |
float | GetVal () const |
index_t | GetLeft (index_t index) const |
index_t | GetRight (index_t index) const |
Private Attributes | |
float | m_cut |
cut value for internal nodes or response for leaf nodes More... | |
int16_t | m_right |
right relative index (to be added to current) (left is always current + 1) More... | |
var_t | m_var |
index of the variable to cut for internal nodes, -1 for leaf nodes More... | |
int8_t | m_default_left |
Node for LGBM with nan implementation.
This follow the implementation in LGBM next = value != nan ? (value <= cut ? left : right) : (default_left ? left : right)
default_left is stored for each node (can be different) Does not support categorical inputs.
Definition at line 134 of file NodeImpl.h.
|
inline |
Definition at line 137 of file NodeImpl.h.
|
inline |
Definition at line 141 of file NodeImpl.h.
Definition at line 146 of file NodeImpl.h.
Definition at line 147 of file NodeImpl.h.
|
inline |
Definition at line 145 of file NodeImpl.h.
|
inline |
Definition at line 144 of file NodeImpl.h.
|
inline |
is the current node a leaf node
Definition at line 142 of file NodeImpl.h.
void NodeLGBM::Print | ( | index_t | index | ) | const |
Definition at line 25 of file NodeImpl.cxx.
|
private |
cut value for internal nodes or response for leaf nodes
Definition at line 150 of file NodeImpl.h.
|
private |
Definition at line 153 of file NodeImpl.h.
|
private |
right relative index (to be added to current) (left is always current + 1)
Definition at line 151 of file NodeImpl.h.
|
private |
index of the variable to cut for internal nodes, -1 for leaf nodes
Definition at line 152 of file NodeImpl.h.