Click or drag to resize

DTreesNode Structure

The class represents a decision tree node.

Namespace:  OpenCvSharp.ML
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public struct Node

The DTreesNode type exposes the following members.

Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldClassIdx
Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.
Public fieldDefaultDir
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.
Public fieldLeft
Index of the left child node
Public fieldParent
Index of the parent node
Public fieldRight
Index of right child node
Public fieldSplit
Index of the first split
Public fieldValue
Value at the node: a class label in case of classification or estimated function value in case of regression.
Top
See Also