SHOGUN
4.2.0
|
structure to store data of a node of CART. This can be used as a template type in TreeMachineNode class. CART algorithm uses nodes of type CTreeMachineNode<CARTreeNodeData>
Definition at line 44 of file CARTreeNodeData.h.
Public Member Functions | |
CARTreeNodeData () | |
Static Public Member Functions | |
static void | print_data (const CARTreeNodeData &data) |
Public Attributes | |
int32_t | attribute_id |
SGVector< float64_t > | transit_into_values |
float64_t | node_label |
float64_t | total_weight |
float64_t | weight_minus_node |
float64_t | weight_minus_branch |
int32_t | num_leaves |
CARTreeNodeData | ( | ) |
constructor
Definition at line 68 of file CARTreeNodeData.h.
|
static |
int32_t attribute_id |
classifying attribute
Definition at line 47 of file CARTreeNodeData.h.
float64_t node_label |
classification/regression label of data
Definition at line 53 of file CARTreeNodeData.h.
int32_t num_leaves |
number of leaves in the subtree beginning at this node
Definition at line 65 of file CARTreeNodeData.h.
float64_t total_weight |
total weight of training samples passing through this node
Definition at line 56 of file CARTreeNodeData.h.
feature value(s) required to move into this node
Definition at line 50 of file CARTreeNodeData.h.
float64_t weight_minus_branch |
total weight of misclassified samples in subtree/ weighted sum of squared deviation in case of regression
Definition at line 62 of file CARTreeNodeData.h.
float64_t weight_minus_node |
total weight of misclassified samples in node/ weighted sum of squared deviation in case of regression
Definition at line 59 of file CARTreeNodeData.h.