|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MVAUtils_NodeImpl_H
6 #define MVAUtils_NodeImpl_H
15 class DecisionTreeNode;
158 if (not std::isnan(
value)) {
200 if (not std::isnan(
value)) {
Node for TMVA implementation.
float GetVal() const
The value to cut on (if not leaf), or the response (if leaf).
NodeLGBMSimple(const int ivar, const float val, const index_t right)
index_t GetLeft(index_t index) const
bool IsLeaf() const
is the current node a leaf node
void Print(index_t index) const
For debugging only: print the node values.
var_t GetVar() const
The variable index to cut on (or -1 if leaf, but use IsLeaf instead if checking for leaf)
bool GetDefaultLeft() const
float GetVal() const
The value to cut on (if not leaf), or the response (if leaf).
index_t GetLeft(index_t index) const
index_t GetRight(index_t index) const
float m_cut
cut value for internal nodes or response for leaf nodes
int8_t var_t
The variable type (i.e., the index of the variable to cut)
Node for XGBoost with nan implementation.
setScaleOne setStatusOne setSaturated int16_t
index_t GetRight(index_t index) const
index_t GetLeft(index_t index) const
For debugging: returns the index of the left node; is passed the current node index.
index_t GetLeft(index_t index) const
For debugging: returns the index of the left node; is passed the current node index.
float m_cut
cut value for internal nodes or response for leaf nodes
bool IsLeaf() const
is the current node a leaf node
NodeXGBoost(const int ivar, const float val, const index_t right, const int8_t default_left)
bool IsLeaf() const
is the current node a leaf node
index_t GetRight(index_t index) const
For debugging: returns the index of the right node; is passed the current node index.
index_t GetNext(const float value, index_t index) const
NodeLGBM(const int ivar, const float val, const index_t right, const int8_t default_left)
void Print(index_t index) const
Node for LGBM without nan implementation.
void Print(index_t index) const
float m_cut
cut value for internal nodes or response for leaf nodes
bool IsLeaf() const
is the current node a leaf node
int32_t index_t
The index type of the node in the vector.
int16_t m_right
right relative index (to be added to current) (left is always current + 1)
var_t m_var
index of the variable to cut for internal nodes, -1 for leaf nodes
var_t m_var
index of the variable to cut for internal nodes, -1 for leaf nodes
int16_t m_right
right relative index (to be added to current) (left is always current + 1)
var_t GetVar() const
The variable index to cut on (or -1 if leaf, but use IsLeaf instead if checking for leaf)
index_t GetNext(const float value, index_t index) const
int16_t m_right
right relative index (to be added to current) (left is always current + 1)
Node for LGBM with nan implementation.
NodeTMVA(const int ivar, const float val, const index_t right)
The constructor gets the index of the variable to cut on (-1 if leaf), the index of the right child (...
bool GetDefaultLeft() const
var_t m_var
index of the variable to cut for internal nodes, -1 for leaf nodes
index_t GetNext(const float value, index_t index) const
void Print(index_t index) const
index_t GetRight(index_t index) const
For debugging: returns the index of the right node; is passed the current node index.
index_t GetNext(const float value, index_t index) const
Based on the value of the variable that's passed in, return the index of the appropriate child.