ATLAS Offline Software
|
Node for LGBM without nan implementation. More...
#include <NodeImpl.h>
Public Member Functions | |
NodeLGBMSimple (const int ivar, const float val, const index_t right) | |
void | Print (index_t index) const |
index_t | GetNext (const float value, index_t index) const |
bool | IsLeaf () const |
is the current node a leaf node More... | |
var_t | GetVar () const |
The variable index to cut on (or -1 if leaf, but use IsLeaf instead if checking for leaf) More... | |
float | GetVal () const |
The value to cut on (if not leaf), or the response (if leaf). More... | |
index_t | GetLeft (index_t index) const |
For debugging: returns the index of the left node; is passed the current node index. More... | |
index_t | GetRight (index_t index) const |
For debugging: returns the index of the right node; is passed the current node index. More... | |
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... | |
Node for LGBM without nan implementation.
This follow the implementation in LGBM next = value <= cut ? left : right
Does not support nan or categorical inputs.
Definition at line 91 of file NodeImpl.h.
For debugging: returns the index of the left node; is passed the current node index.
Definition at line 108 of file NodeImpl.h.
For debugging: returns the index of the right node; is passed the current node index.
Definition at line 112 of file NodeImpl.h.
|
inline |
The value to cut on (if not leaf), or the response (if leaf).
Definition at line 104 of file NodeImpl.h.
|
inline |
The variable index to cut on (or -1 if leaf, but use IsLeaf instead if checking for leaf)
Definition at line 101 of file NodeImpl.h.
|
inline |
is the current node a leaf node
Definition at line 98 of file NodeImpl.h.
void NodeLGBMSimple::Print | ( | index_t | index | ) | const |
|
private |
cut value for internal nodes or response for leaf nodes
Definition at line 115 of file NodeImpl.h.
|
private |
right relative index (to be added to current) (left is always current + 1)
Definition at line 116 of file NodeImpl.h.
|
private |
index of the variable to cut for internal nodes, -1 for leaf nodes
Definition at line 117 of file NodeImpl.h.