Struct DTrees.Node
- Namespace
- OpenCvSharp.ML
- Assembly
- OpenCvSharp.dll
The class represents a decision tree node.
[SuppressMessage("Microsoft.Design", "CA1815: Override equals and operator equals on value types")]
public struct DTrees.Node
- Inherited Members
Fields
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.
public int ClassIdx
Field Value
DefaultDir
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.
public int DefaultDir
Field Value
Left
Index of the left child node
public int Left
Field Value
Parent
Index of the parent node
public int Parent
Field Value
Right
Index of right child node
public int Right
Field Value
Split
Index of the first split
public int Split
Field Value
Value
Value at the node: a class label in case of classification or estimated function value in case of regression.
public double Value