ATLAS Offline Software
|
Node for XGBoost with nan implementation. More...
#include <NodeImpl.h>
Public Member Functions | |
NodeXGBoost (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 |
int16_t | m_right |
var_t | m_var |
int8_t | m_default_left |
Node for XGBoost with nan implementation.
This follow the implementation in XGBoost next = value != nan ? (value < cut ? left : right) : (default_left ? left : right) left are assigned to be "YES" right are assigned to be "NO" in XGBoost default_left is stored for each node (can be different) Does not support categorical inputs.
Definition at line 176 of file NodeImpl.h.
|
inline |
Definition at line 179 of file NodeImpl.h.
|
inline |
Definition at line 183 of file NodeImpl.h.
Definition at line 188 of file NodeImpl.h.
Definition at line 189 of file NodeImpl.h.
|
inline |
Definition at line 187 of file NodeImpl.h.
|
inline |
Definition at line 186 of file NodeImpl.h.
|
inline |
is the current node a leaf node
Definition at line 184 of file NodeImpl.h.
void NodeXGBoost::Print | ( | index_t | index | ) | const |
Definition at line 31 of file NodeImpl.cxx.
|
private |
Definition at line 192 of file NodeImpl.h.
|
private |
Definition at line 195 of file NodeImpl.h.
|
private |
Definition at line 193 of file NodeImpl.h.
|
private |
Definition at line 194 of file NodeImpl.h.