SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
CARTreeNodeData Struct Reference

Detailed Description

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_ttransit_into_values
 
float64_t node_label
 
float64_t total_weight
 
float64_t weight_minus_node
 
float64_t weight_minus_branch
 
int32_t num_leaves
 

Constructor & Destructor Documentation

constructor

Definition at line 68 of file CARTreeNodeData.h.

Member Function Documentation

static void print_data ( const CARTreeNodeData data)
static

print data

Parameters
datathe data to be printed

Definition at line 82 of file CARTreeNodeData.h.

Member Data Documentation

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.

SGVector<float64_t> transit_into_values

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.


The documentation for this struct was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation