OpenCV  3.3.0-dev
Open Source Computer Vision
Public Member Functions | Public Attributes | List of all members
cv::ml::DTrees::Node Class Reference

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

#include "ml.hpp"

Public Member Functions

 Node ()
 

Public Attributes

int classIdx
 
int defaultDir
 
int left
 Index of the left child node. More...
 
int parent
 Index of the parent node. More...
 
int right
 Index of right child node. More...
 
int split
 Index of the first split. More...
 
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: