The MCvDTreeNode type exposes the following fields.
Fields
![]() ![]() | ![]() ![]() | ![]() ![]() | ![]() ![]() |
Member | Description | |
---|---|---|
![]() | alpha |
Global pruning data
|
![]() | bufIdx |
Internal parameters
|
![]() | classIdx |
The assigned to the node normalized class index (to 0..class_count-1 range), it is used internally in classification trees and tree ensembles.
|
![]() | complexity |
Global pruning data
|
![]() | cvNodeError |
Cross-validation pruning data
|
![]() | cvNodeRisk |
Cross-validation pruning data
|
![]() | cvTn |
Cross-validation pruning data
|
![]() | depth |
The node depth, the root node depth is 0, the child nodes depth is the parent's depth + 1.
|
![]() | left |
Pointer to the left tree node
|
![]() | maxlr |
Internal parameters
|
![]() | nodeRisk |
Global pruning data
|
![]() | numValid |
Internal parameters
|
![]() | offset |
Internal parameters
|
![]() | parent |
Pointer to the parent tree node
|
![]() | right |
Pointer to the right tree node
|
![]() | sampleCount |
The number of samples that fall into the node at the training stage. It is used to resolve the difficult cases - when the variable for the primary split is missing, and all the variables for other surrogate splits are missing too,
the sample is directed to the left if left->sample_count>right->sample_count and to the right otherwise
|
![]() | split |
Pointer to CvDTreeSplit
|
![]() | Tn |
The tree index in a ordered sequence of trees. The indices are used during and after the pruning procedure. The root node has the maximum value Tn of the whole tree, child nodes have Tn less than or equal to the parent's Tn, and the nodes with Tn<=CvDTree::pruned_tree_idx are not taken into consideration at the prediction stage (the corresponding branches are considered as cut-off), even if they have not been physically deleted from the tree at the pruning stage.
|
![]() | treeError |
Global pruning data
|
![]() | treeRisk |
Global pruning data
|
![]() | value |
The value assigned to the tree node. It is either a class label, or the estimated function value.
|