Represents a node in a decision tree.
More...
#include <DecisionTree.h>
|
|
union { | |
| |
|
float threshold | |
| | Threshold value for non-leaf nodes.
|
| |
|
float leafValue | |
| | Value for leaf nodes.
|
| |
| }; | | |
| |
|
int | indexID |
| | Index of the feature to compare.
|
| |
|
int | leftChild |
| | Index of the left child node.
|
| |
|
int | rightChild |
| | Index of the right child node.
|
| |
|
bool | isLeaf |
| | Whether the node is a leaf.
|
| |
|
bool | isMissTrackLeft |
| | Whether to track left if feature value is missing.
|
| |
Represents a node in a decision tree.
The documentation for this struct was generated from the following file: