Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

DTrees::Node Class Reference

DTrees::Node Class Reference

The class represents a decision tree node. More...

#include <ml.hpp>

Data Fields

double value
 Value at the node: a class label in case of classification or estimated function value in case of regression.
int classIdx
 Class index normalized to 0..class_count-1 range and assigned to the node.
int parent
 Index of the parent node.
int left
 Index of the left child node.
int right
 Index of right child node.
int defaultDir
 Default direction where to go (-1: left or +1: right).
int split
 Index of the first split.

Detailed Description

The class represents a decision tree node.

Definition at line 1049 of file ml.hpp.


Field Documentation

int classIdx

Class index normalized to 0..class_count-1 range and assigned to the node.

It is used internally in classification trees and tree ensembles.

Definition at line 1055 of file ml.hpp.

Default direction where to go (-1: left or +1: right).

It helps in the case of missing values.

Definition at line 1060 of file ml.hpp.

int left

Index of the left child node.

Definition at line 1058 of file ml.hpp.

int parent

Index of the parent node.

Definition at line 1057 of file ml.hpp.

int right

Index of right child node.

Definition at line 1059 of file ml.hpp.

int split

Index of the first split.

Definition at line 1062 of file ml.hpp.

double value

Value at the node: a class label in case of classification or estimated function value in case of regression.

Definition at line 1053 of file ml.hpp.