OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::ml::DTrees::Node Class Reference

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

#include <opencv2/ml.hpp>

Collaboration diagram for cv::ml::DTrees::Node:

Public Member Functions

 Node ()
 

Public Attributes

int classIdx
 
int defaultDir
 
int left
 Index of the left child node.
 
int parent
 Index of the parent node.
 
int right
 Index of right child node.
 
int split
 Index of the first split.
 
double value
 

Detailed Description

The class represents a decision tree node.

Constructor & Destructor Documentation

◆ Node()

cv::ml::DTrees::Node::Node ( )

Member Data Documentation

◆ classIdx

int cv::ml::DTrees::Node::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.

◆ defaultDir

int cv::ml::DTrees::Node::defaultDir

Default direction where to go (-1: left or +1: right). It helps in the case of missing values.

◆ left

int cv::ml::DTrees::Node::left

Index of the left child node.

◆ parent

int cv::ml::DTrees::Node::parent

Index of the parent node.

◆ right

int cv::ml::DTrees::Node::right

Index of right child node.

◆ split

int cv::ml::DTrees::Node::split

Index of the first split.

◆ value

double cv::ml::DTrees::Node::value

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


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