Struct DTrees.Node
The class represents a decision tree node.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenCvSharp.ML
Assembly: OpenCvSharp.dll
Syntax
public struct Node
Fields
| Improve this Doc View SourceClassIdx
Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.
Declaration
public int ClassIdx
Field Value
Type | Description |
---|---|
System.Int32 |
DefaultDir
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.
Declaration
public int DefaultDir
Field Value
Type | Description |
---|---|
System.Int32 |
Left
Index of the left child node
Declaration
public int Left
Field Value
Type | Description |
---|---|
System.Int32 |
Parent
Index of the parent node
Declaration
public int Parent
Field Value
Type | Description |
---|---|
System.Int32 |
Right
Index of right child node
Declaration
public int Right
Field Value
Type | Description |
---|---|
System.Int32 |
Split
Index of the first split
Declaration
public int Split
Field Value
Type | Description |
---|---|
System.Int32 |
Value
Value at the node: a class label in case of classification or estimated function value in case of regression.
Declaration
public double Value
Field Value
Type | Description |
---|---|
System.Double |