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
CHAIDTreeNodeData Struct Reference

Detailed Description

structure to store data of a node of CHAID. This can be used as a template type in TreeMachineNode class. CHAID algorithm uses nodes of type CTreeMachineNode<CHAIDTreeNodeData>

Definition at line 44 of file CHAIDTreeNodeData.h.

Public Member Functions

 CHAIDTreeNodeData ()
 

Static Public Member Functions

static void print_data (const CHAIDTreeNodeData &data)
 

Public Attributes

int32_t attribute_id
 
SGVector< float64_tdistinct_features
 
SGVector< int32_t > feature_class
 
float64_t node_label
 
float64_t total_weight
 
float64_t weight_minus_node
 

Constructor & Destructor Documentation

constructor

Definition at line 65 of file CHAIDTreeNodeData.h.

Member Function Documentation

static void print_data ( const CHAIDTreeNodeData data)
static

print data

Parameters
datathe data to be printed

Definition at line 78 of file CHAIDTreeNodeData.h.

Member Data Documentation

int32_t attribute_id

classifying attribute

Definition at line 47 of file CHAIDTreeNodeData.h.

SGVector<float64_t> distinct_features

distinct feature values possible for attribute_id

Definition at line 50 of file CHAIDTreeNodeData.h.

SGVector<int32_t> feature_class

class to which each distinct feature type is assigned

Definition at line 53 of file CHAIDTreeNodeData.h.

float64_t node_label

label representative of data in node

Definition at line 56 of file CHAIDTreeNodeData.h.

float64_t total_weight

total weight of training samples passing through this node

Definition at line 59 of file CHAIDTreeNodeData.h.

float64_t weight_minus_node

total weight of misclassified samples in node

Definition at line 62 of file CHAIDTreeNodeData.h.


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

SHOGUN Machine Learning Toolbox - Documentation